MCPcopy Create free account
hub / github.com/code100x/daily-code / handleEdit

Function handleEdit

apps/web/components/EditProblem.tsx:11–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 const [title, setTitle] = useState(problem.title);
10 const [notionDocId, setNotionDocId] = useState(problem.notionDocId);
11 function handleEdit() {
12 if (isEditing) {
13 return setIsEditing(false);
14 }
15 setIsEditing(true);
16 }
17 function handleDiscardButton() {
18 setId(problem.id);
19 setTitle(problem.title);

Callers 1

EditProblemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected