diff options
author | 2021-12-04 10:51:16 +0100 | |
---|---|---|
committer | 2021-12-04 10:51:16 +0100 | |
commit | 11c992b04f3cad6badf0ae86da65f490e31dd359 (patch) | |
tree | 749e63f6ba3e9bea48c186b5d8502d328edfd276 /src/components/ui/infobox/index.tsx | |
parent | 5.6.4-nightly.24 [skip ci] (diff) | |
download | ferdium-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/infobox/index.tsx')
-rw-r--r-- | src/components/ui/infobox/index.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/ui/infobox/index.tsx b/src/components/ui/infobox/index.tsx index 87940c4d4..7b2ce527b 100644 --- a/src/components/ui/infobox/index.tsx +++ b/src/components/ui/infobox/index.tsx | |||
@@ -1,13 +1,12 @@ | |||
1 | import { mdiClose } from '@mdi/js'; | 1 | import { mdiClose } from '@mdi/js'; |
2 | import classnames from 'classnames'; | 2 | import classnames from 'classnames'; |
3 | import { Component, ReactNode } from 'react'; | 3 | import { Component, ReactNode } 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 { Icon } from '../icon'; | 7 | import { Icon } from '../icon'; |
8 | import { IWithStyle } from '../typings/generic'; | ||
9 | 8 | ||
10 | interface IProps extends IWithStyle { | 9 | interface IProps extends WithStylesProps<typeof styles> { |
11 | icon?: string; | 10 | icon?: string; |
12 | type?: string; | 11 | type?: string; |
13 | dismissable?: boolean; | 12 | dismissable?: boolean; |
@@ -202,4 +201,6 @@ class InfoboxComponent extends Component<IProps, IState> { | |||
202 | } | 201 | } |
203 | } | 202 | } |
204 | 203 | ||
205 | export const Infobox = injectStyle(styles)(InfoboxComponent); | 204 | export const Infobox = injectStyle(styles, { injectTheme: true })( |
205 | InfoboxComponent, | ||
206 | ); | ||