pull/2116/head
Jérémy Rialland 2022-04-26 16:07:28 +02:00 committed by Jérémy Rialland
parent 27d0cbe4e1
commit 6d54fe22d2
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)