diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-12-04 10:51:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-04 10:51:16 +0100 |
commit | 11c992b04f3cad6badf0ae86da65f490e31dd359 (patch) | |
tree | 749e63f6ba3e9bea48c186b5d8502d328edfd276 /src/components/ui/textarea | |
parent | 5.6.4-nightly.24 [skip ci] (diff) | |
download | ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.gz ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.zst ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.zip |
chore: upgrade react-jss to latest (#2302)
Diffstat (limited to 'src/components/ui/textarea')
-rw-r--r-- | src/components/ui/textarea/index.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components/ui/textarea/index.tsx b/src/components/ui/textarea/index.tsx index 1b16698eb..a47465806 100644 --- a/src/components/ui/textarea/index.tsx +++ b/src/components/ui/textarea/index.tsx | |||
@@ -1,8 +1,8 @@ | |||
1 | import classnames from 'classnames'; | 1 | import classnames from 'classnames'; |
2 | import { Component, createRef, TextareaHTMLAttributes } from 'react'; | 2 | import { Component, createRef, TextareaHTMLAttributes } from 'react'; |
3 | import injectSheet from 'react-jss'; | 3 | import injectSheet, { WithStylesProps } from 'react-jss'; |
4 | 4 | ||
5 | import { IFormField, IWithStyle } from '../typings/generic'; | 5 | import { IFormField } from '../typings/generic'; |
6 | 6 | ||
7 | import { Error } from '../error'; | 7 | import { Error } from '../error'; |
8 | import { Label } from '../label'; | 8 | import { Label } from '../label'; |
@@ -17,7 +17,7 @@ interface IData { | |||
17 | interface IProps | 17 | interface IProps |
18 | extends TextareaHTMLAttributes<HTMLTextAreaElement>, | 18 | extends TextareaHTMLAttributes<HTMLTextAreaElement>, |
19 | IFormField, | 19 | IFormField, |
20 | IWithStyle { | 20 | WithStylesProps<typeof styles> { |
21 | focus?: boolean; | 21 | focus?: boolean; |
22 | data: IData; | 22 | data: IData; |
23 | textareaClassName?: string; | 23 | textareaClassName?: string; |
@@ -123,4 +123,6 @@ class TextareaComponent extends Component<IProps> { | |||
123 | } | 123 | } |
124 | } | 124 | } |
125 | 125 | ||
126 | export const Textarea = injectSheet(styles)(TextareaComponent); | 126 | export const Textarea = injectSheet(styles, { injectTheme: true })( |
127 | TextareaComponent, | ||
128 | ); | ||