File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/components/Form/DatePickerInput Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { TextInput } from 'flowbite-react';
6
6
import styles from '/styles/inputs.module.scss' ;
7
7
import { useLocale } from 'src/hooks/useLocale' ;
8
8
import { CalendarEdit } from 'src/icons' ;
9
+ import clsx from 'clsx' ;
9
10
10
11
const useOptions = ( { initialValue } : FieldMetaProps < any > ) : IOptions => {
11
12
const locale = useLocale ( ) ;
@@ -31,7 +32,7 @@ const DatePickerInput = ({ field }: { field: FormField }) => {
31
32
< Datepicker options = { options } onChange = { handleChange } show = { show } setShow = { setShow } >
32
33
< TextInput id = { field . name } { ...fieldProps } helperText = { meta . touched && meta . error }
33
34
value = { value . toLocaleDateString ( ) } onClick = { ( ) => setShow ( true ) } readOnly icon = { CalendarEdit }
34
- className = { ` ${ styles . input } flex items-center font-bold` } style = { { cursor : 'pointer' } }
35
+ className = { clsx ( styles . input , ' flex items-center font-bold' ) } style = { { cursor : 'pointer' } }
35
36
/>
36
37
</ Datepicker >
37
38
) ;
You can’t perform that action at this time.
0 commit comments