MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / onChangeSwitch

Function onChangeSwitch

src/pages/Workspace/ShareModal.tsx:34–40  ·  view source on GitHub ↗
(e: any, type: string)

Source from the content-addressed store, hash-verified

32 setCustomList({ ...customList, [type]: e.target.value })
33 }
34 const onChangeSwitch = (e: any, type: string) => {
35 if (type === 'customUrl') {
36 setIsCustomUrl(e)
37 } else {
38 setCustomList({ ...customList, isAutoApi: e })
39 }
40 }
41 return (
42 <Modal
43 title='下载'

Callers 1

ShareModalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected