MCPcopy Create free account
hub / github.com/TheCSir/TerminalStart / toggleModal

Function toggleModal

src/components/settings/Settings.tsx:54–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 const [widgetToDuplicate, setWidgetToDuplicate] = useState<string | null>(null);
53
54 const toggleModal = () => {
55 setIsModalOpen(!isModalOpen);
56 if (!isModalOpen) {
57 setPosition({ x: 0, y: 0 });
58 }
59 };
60
61 // drag
62 const handleMouseDown = (e: React.MouseEvent) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected