string or number array to mixed array

This commit is contained in:
Milli 2022-05-26 14:47:32 +02:00
parent 5f8031c155
commit 66971ed204

View File

@ -4,7 +4,7 @@ import clsx from 'clsx'
export function ChoicesToggleGroup(props: { export function ChoicesToggleGroup(props: {
currentChoice: number | string currentChoice: number | string
setChoice: (p: any) => void //number | string does not work here because of SetStateAction in .tsx setChoice: (p: any) => void //number | string does not work here because of SetStateAction in .tsx
choices: number[] | string[] choices: (number | string)[]
titles: string[] titles: string[]
isSubmitting?: boolean isSubmitting?: boolean
}) { }) {