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

Function handleDiscardButton

apps/web/components/admin/EditTrackCard.tsx:44–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 }
43
44 function handleDiscardButton() {
45 setTitle(Track.title);
46 setDescription(Track.description);
47 setImage(Track.image);
48 setHidden(Track.hidden);
49 setIsEditing(Track.hidden);
50 setCohort(Track.cohort);
51 }
52 return (
53 <Card key={Track.id}>
54 {!isEditing && (

Callers 1

EditTrackCardFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected