mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
tweak(phone/snackbarprovider): remove redunant function
This commit is contained in:
1 parent
f58c30b0d9
commit
2a9f475cdc
1 file changed
+1
-3
@@ -16,10 +16,8 @@ function SnackbarProvider({ children }) {
|
|||||||
return () => clearTimeout(timer.current);
|
return () => clearTimeout(timer.current);
|
||||||
}, [alert]);
|
}, [alert]);
|
||||||
|
|
||||||
const addAlert = (value) => setAlert(value);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SnackbarContext.Provider value={{ addAlert, alert }}>
|
<SnackbarContext.Provider value={{ alert, addAlert: setAlert }}>
|
||||||
{children}
|
{children}
|
||||||
</SnackbarContext.Provider>
|
</SnackbarContext.Provider>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user