MCPcopy Create free account
hub / github.com/Bitbox-Connect/Bitbox / showAlert

Function showAlert

client/src/App.jsx:75–80  ·  view source on GitHub ↗
(message, type)

Source from the content-addressed store, hash-verified

73 const [mode, setMode] = useAtom(modeAtom);
74 const [alert, setAlert] = useState(null);
75 const showAlert = (message, type) => {
76 setAlert({ msg: message, type: type });
77 setTimeout(() => {
78 setAlert(null);
79 }, 1500);
80 };
81
82 const [progress, setProgress] = useState(0);
83 const [islogged, setloggedin] = useState(false);

Callers 4

handleDeleteFunction · 0.85
handleForgotPasswordFunction · 0.85
handleSubmitFunction · 0.85
TestModalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected