MCPcopy Create free account
hub / github.com/FeatureProbe/FeatureProbe / handleInput

Function handleInput

ui/src/pages/toggle/hooks.tsx:29–38  ·  view source on GitHub ↗
(e: SyntheticEvent, detail: InputOnChangeData)

Source from the content-addressed store, hash-verified

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]) {

Callers 1

VariationItemFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected