MCPcopy Create free account
hub / github.com/TurtleTrace2026/TurtleTrace / toggleModule

Function toggleModule

src/components/share/EnhancedShareDialog.tsx:76–84  ·  view source on GitHub ↗
(module: keyof ShareConfig['modules'])

Source from the content-addressed store, hash-verified

74
75 // 更新模块选择
76 const toggleModule = (module: keyof ShareConfig['modules']) => {
77 setConfig((prev) => ({
78 ...prev,
79 modules: {
80 ...prev.modules,
81 [module]: !prev.modules[module],
82 },
83 }))
84 }
85
86 // 更新脱敏配置
87 const updatePrivacy = (key: keyof ShareConfig['privacy'], value: boolean) => {

Callers 1

EnhancedShareDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected