diff options
Diffstat (limited to 'src/components/ui/wrapper/index.tsx')
-rw-r--r-- | src/components/ui/wrapper/index.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/ui/wrapper/index.tsx b/src/components/ui/wrapper/index.tsx index ffcd6fe0b..bc385d319 100644 --- a/src/components/ui/wrapper/index.tsx +++ b/src/components/ui/wrapper/index.tsx | |||
@@ -1,9 +1,8 @@ | |||
1 | import classnames from 'classnames'; | 1 | import classnames from 'classnames'; |
2 | import { Component, ReactNode } from 'react'; | 2 | import { Component, ReactNode } from 'react'; |
3 | import injectStyle from 'react-jss'; | 3 | import injectStyle, { WithStylesProps } from 'react-jss'; |
4 | import { IWithStyle } from '../typings/generic'; | ||
5 | 4 | ||
6 | interface IProps extends IWithStyle { | 5 | interface IProps extends WithStylesProps<typeof styles> { |
7 | children: ReactNode; | 6 | children: ReactNode; |
8 | className?: string; | 7 | className?: string; |
9 | identifier: string; | 8 | identifier: string; |
@@ -34,4 +33,6 @@ class WrapperComponent extends Component<IProps> { | |||
34 | } | 33 | } |
35 | } | 34 | } |
36 | 35 | ||
37 | export const Wrapper = injectStyle(styles)(WrapperComponent); | 36 | export const Wrapper = injectStyle(styles, { injectTheme: true })( |
37 | WrapperComponent, | ||
38 | ); | ||