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/label/index.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/components/ui/label') diff --git a/src/components/ui/label/index.tsx b/src/components/ui/label/index.tsx index 4d86f23f7..dcc14bff4 100644 --- a/src/components/ui/label/index.tsx +++ b/src/components/ui/label/index.tsx @@ -1,15 +1,16 @@ import classnames from 'classnames'; -import { Classes } from 'jss'; import { Component, LabelHTMLAttributes } from 'react'; -import injectSheet from 'react-jss'; +import injectSheet, { WithStylesProps } from 'react-jss'; import { IFormField } from '../typings/generic'; import styles from './styles'; -interface ILabel extends IFormField, LabelHTMLAttributes { - classes: Classes; - isRequired: boolean; +interface ILabel + extends IFormField, + LabelHTMLAttributes, + WithStylesProps { + isRequired?: boolean; } class LabelComponent extends Component { @@ -49,4 +50,4 @@ class LabelComponent extends Component { } } -export const Label = injectSheet(styles)(LabelComponent); +export const Label = injectSheet(styles, { injectTheme: true })(LabelComponent); -- cgit v1.2.3-70-g09d2