MCPcopy Create free account
hub / github.com/LevelUpWeb3/app / showMessage

Function showMessage

src/contexts/MessageProvider.tsx:21–26  ·  view source on GitHub ↗
(msg, sev = "info", dur = 6000)

Source from the content-addressed store, hash-verified

19 const [duration, setDuration] = useState(6000);
20
21 const showMessage: MessageContextType = (msg, sev = "info", dur = 6000) => {
22 setMessage(msg);
23 setSeverity(sev);
24 setDuration(dur);
25 setOpen(true);
26 };
27
28 return (
29 <MessageContext.Provider value={showMessage}>

Callers 4

handlePickPictureFunction · 0.85
handleConfirmFunction · 0.85
handleSubmitCodeFunction · 0.85
handleSubmitCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected