diff options
Diffstat (limited to 'src/components/ui/label/index.tsx')
-rw-r--r-- | src/components/ui/label/index.tsx | 13 |
1 files changed, 7 insertions, 6 deletions
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 @@ | |||
1 | import classnames from 'classnames'; | 1 | import classnames from 'classnames'; |
2 | import { Classes } from 'jss'; | ||
3 | import { Component, LabelHTMLAttributes } from 'react'; | 2 | import { Component, LabelHTMLAttributes } from 'react'; |
4 | import injectSheet from 'react-jss'; | 3 | import injectSheet, { WithStylesProps } from 'react-jss'; |
5 | 4 | ||
6 | import { IFormField } from '../typings/generic'; | 5 | import { IFormField } from '../typings/generic'; |
7 | 6 | ||
8 | import styles from './styles'; | 7 | import styles from './styles'; |
9 | 8 | ||
10 | interface ILabel extends IFormField, LabelHTMLAttributes<HTMLLabelElement> { | 9 | interface ILabel |
11 | classes: Classes; | 10 | extends IFormField, |
12 | isRequired: boolean; | 11 | LabelHTMLAttributes<HTMLLabelElement>, |
12 | WithStylesProps<typeof styles> { | ||
13 | isRequired?: boolean; | ||
13 | } | 14 | } |
14 | 15 | ||
15 | class LabelComponent extends Component<ILabel> { | 16 | class LabelComponent extends Component<ILabel> { |
@@ -49,4 +50,4 @@ class LabelComponent extends Component<ILabel> { | |||
49 | } | 50 | } |
50 | } | 51 | } |
51 | 52 | ||
52 | export const Label = injectSheet(styles)(LabelComponent); | 53 | export const Label = injectSheet(styles, { injectTheme: true })(LabelComponent); |