(e: SyntheticEvent, detail: InputOnChangeData)
| 27 | }; |
| 28 | |
| 29 | const handleInput = (e: SyntheticEvent, detail: InputOnChangeData) => { |
| 30 | const { value, index, customname } = detail; |
| 31 | |
| 32 | if (variations[index]) { |
| 33 | // @ts-ignore detail value |
| 34 | variations[index][customname] = value; |
| 35 | } |
| 36 | |
| 37 | saveVariations([...variations]); |
| 38 | }; |
| 39 | |
| 40 | const handleChangeVariation = (index: number, value: string) => { |
| 41 | if (variations[index]) { |