aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/icon
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-12-04 10:51:16 +0100
committerLibravatar GitHub <noreply@github.com>2021-12-04 10:51:16 +0100
commit11c992b04f3cad6badf0ae86da65f490e31dd359 (patch)
tree749e63f6ba3e9bea48c186b5d8502d328edfd276 /src/components/ui/icon
parent5.6.4-nightly.24 [skip ci] (diff)
downloadferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.gz
ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.zst
ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.zip
chore: upgrade react-jss to latest (#2302)
Diffstat (limited to 'src/components/ui/icon')
-rw-r--r--src/components/ui/icon/index.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/ui/icon/index.tsx b/src/components/ui/icon/index.tsx
index 85bb61d13..52f61d2d7 100644
--- a/src/components/ui/icon/index.tsx
+++ b/src/components/ui/icon/index.tsx
@@ -1,12 +1,11 @@
1import MdiIcon from '@mdi/react'; 1import MdiIcon from '@mdi/react';
2import classnames from 'classnames'; 2import classnames from 'classnames';
3import { Component } from 'react'; 3import { Component } from 'react';
4import injectStyle from 'react-jss'; 4import injectStyle, { WithStylesProps } from 'react-jss';
5 5
6import { Theme } from '../../../themes'; 6import { Theme } from '../../../themes';
7import { IWithStyle } from '../typings/generic';
8 7
9interface IProps extends IWithStyle { 8interface IProps extends WithStylesProps<typeof styles> {
10 icon: string; 9 icon: string;
11 size?: number; 10 size?: number;
12 className?: string; 11 className?: string;
@@ -43,4 +42,4 @@ class IconComponent extends Component<IProps> {
43 } 42 }
44} 43}
45 44
46export const Icon = injectStyle(styles)(IconComponent); 45export const Icon = injectStyle(styles, { injectTheme: true })(IconComponent);