diff options
Diffstat (limited to 'src/components/ui/icon/index.tsx')
-rw-r--r-- | src/components/ui/icon/index.tsx | 7 |
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 @@ | |||
1 | import MdiIcon from '@mdi/react'; | 1 | import MdiIcon from '@mdi/react'; |
2 | import classnames from 'classnames'; | 2 | import classnames from 'classnames'; |
3 | import { Component } from 'react'; | 3 | import { Component } from 'react'; |
4 | import injectStyle from 'react-jss'; | 4 | import injectStyle, { WithStylesProps } from 'react-jss'; |
5 | 5 | ||
6 | import { Theme } from '../../../themes'; | 6 | import { Theme } from '../../../themes'; |
7 | import { IWithStyle } from '../typings/generic'; | ||
8 | 7 | ||
9 | interface IProps extends IWithStyle { | 8 | interface 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 | ||
46 | export const Icon = injectStyle(styles)(IconComponent); | 45 | export const Icon = injectStyle(styles, { injectTheme: true })(IconComponent); |