MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / resetForm

Function resetForm

src/components/ChangePasswordModal.tsx:26–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 const [error, setError] = useState<string | null>(null);
25
26 const resetForm = () => {
27 setCurrentPassword("");
28 setNewPassword("");
29 setConfirmPassword("");
30 setError(null);
31 };
32
33 const handleClose = () => {
34 resetForm();

Callers 2

handleCloseFunction · 0.85
handleSubmitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected