Fix type
parent
27d0cbe4e1
commit
6d54fe22d2
|
@ -38,7 +38,7 @@ type Props<Names extends string = DottedName> = Omit<
|
|||
// implement this behavior currently
|
||||
// cf .https://github.com/betagouv/mon-entreprise/issues/1489#issuecomment-823058710
|
||||
showDefaultDateValue?: boolean
|
||||
onSubmit?: (source: string) => void
|
||||
onSubmit?: (source?: string) => void
|
||||
inputType?: 'radio' | 'card' | 'toggle' | 'select'
|
||||
formatOptions?: Intl.NumberFormatOptions
|
||||
displayedUnit?: string
|
||||
|
|
|
@ -137,7 +137,7 @@ interface ErrorT extends Error {
|
|||
}
|
||||
|
||||
export default function SelectAtmp(
|
||||
props: Parameters<typeof SelectComponent>[0]
|
||||
props: Omit<Parameters<typeof SelectComponent>[0], 'options'>
|
||||
) {
|
||||
const [options, setOptions] = useState<Result[] | null>(null)
|
||||
|
||||
|
|
Loading…
Reference in New Issue