From 11c992b04f3cad6badf0ae86da65f490e31dd359 Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Sat, 4 Dec 2021 10:51:16 +0100 Subject: chore: upgrade react-jss to latest (#2302) --- src/components/ui/wrapper/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/components/ui/wrapper/index.tsx') 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 @@ import classnames from 'classnames'; import { Component, ReactNode } from 'react'; -import injectStyle from 'react-jss'; -import { IWithStyle } from '../typings/generic'; +import injectStyle, { WithStylesProps } from 'react-jss'; -interface IProps extends IWithStyle { +interface IProps extends WithStylesProps { children: ReactNode; className?: string; identifier: string; @@ -34,4 +33,6 @@ class WrapperComponent extends Component { } } -export const Wrapper = injectStyle(styles)(WrapperComponent); +export const Wrapper = injectStyle(styles, { injectTheme: true })( + WrapperComponent, +); -- cgit v1.2.3-70-g09d2