diff options
Diffstat (limited to 'src/components/ui/input/index.tsx')
-rw-r--r-- | src/components/ui/input/index.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/ui/input/index.tsx b/src/components/ui/input/index.tsx index c46cafc5c..bfbee33b9 100644 --- a/src/components/ui/input/index.tsx +++ b/src/components/ui/input/index.tsx | |||
@@ -2,9 +2,9 @@ import { mdiEye, mdiEyeOff } from '@mdi/js'; | |||
2 | import Icon from '@mdi/react'; | 2 | import Icon from '@mdi/react'; |
3 | import classnames from 'classnames'; | 3 | import classnames from 'classnames'; |
4 | import { Component, createRef, InputHTMLAttributes } from 'react'; | 4 | import { Component, createRef, InputHTMLAttributes } from 'react'; |
5 | import injectSheet from 'react-jss'; | 5 | import injectSheet, { WithStylesProps } from 'react-jss'; |
6 | 6 | ||
7 | import { IFormField, IWithStyle } from '../typings/generic'; | 7 | import { IFormField } from '../typings/generic'; |
8 | 8 | ||
9 | import { Error } from '../error'; | 9 | import { Error } from '../error'; |
10 | import { Label } from '../label'; | 10 | import { Label } from '../label'; |
@@ -20,7 +20,7 @@ interface IData { | |||
20 | interface IProps | 20 | interface IProps |
21 | extends InputHTMLAttributes<HTMLInputElement>, | 21 | extends InputHTMLAttributes<HTMLInputElement>, |
22 | IFormField, | 22 | IFormField, |
23 | IWithStyle { | 23 | WithStylesProps<typeof styles> { |
24 | focus?: boolean; | 24 | focus?: boolean; |
25 | prefix?: string; | 25 | prefix?: string; |
26 | suffix?: string; | 26 | suffix?: string; |
@@ -205,4 +205,4 @@ class InputComponent extends Component<IProps, IState> { | |||
205 | } | 205 | } |
206 | } | 206 | } |
207 | 207 | ||
208 | export const Input = injectSheet(styles)(InputComponent); | 208 | export const Input = injectSheet(styles, { injectTheme: true })(InputComponent); |