diff options
author | Muhamed <unknown> | 2023-05-27 01:32:44 +0530 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2023-05-27 18:10:24 +0530 |
commit | b8950dde09cb41eac5dba40ae034abf7a5e6bdb2 (patch) | |
tree | 978c1649cd8fc51adc1253b9934491237d3f9ffc /src/components/ui/Select.tsx | |
parent | Upgrade 'pnpm' to '8.5.1' (diff) | |
download | ferdium-app-b8950dde09cb41eac5dba40ae034abf7a5e6bdb2.tar.gz ferdium-app-b8950dde09cb41eac5dba40ae034abf7a5e6bdb2.tar.zst ferdium-app-b8950dde09cb41eac5dba40ae034abf7a5e6bdb2.zip |
update react version to 18.2.0 and it related changes
Diffstat (limited to 'src/components/ui/Select.tsx')
-rw-r--r-- | src/components/ui/Select.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/ui/Select.tsx b/src/components/ui/Select.tsx index 1d69a9acf..e8e305fdd 100644 --- a/src/components/ui/Select.tsx +++ b/src/components/ui/Select.tsx | |||
@@ -4,6 +4,7 @@ import { | |||
4 | ReactElement, | 4 | ReactElement, |
5 | RefObject, | 5 | RefObject, |
6 | ChangeEvent, | 6 | ChangeEvent, |
7 | ReactNode, | ||
7 | } from 'react'; | 8 | } from 'react'; |
8 | import { observer } from 'mobx-react'; | 9 | import { observer } from 'mobx-react'; |
9 | import classnames from 'classnames'; | 10 | import classnames from 'classnames'; |
@@ -103,7 +104,9 @@ class Select extends Component<IProps> { | |||
103 | </option> | 104 | </option> |
104 | ))} | 105 | ))} |
105 | </select> | 106 | </select> |
106 | {field.error && <div className="franz-form__error">{field.error}</div>} | 107 | {field.error && ( |
108 | <div className="franz-form__error">{field.error as ReactNode}</div> | ||
109 | )} | ||
107 | </div> | 110 | </div> |
108 | ); | 111 | ); |
109 | } | 112 | } |