Merge pull request #955 from getmaxun/alert-cloud

fix: alert cloud sync
This commit is contained in:
Karishma Shukla
2026-01-23 17:06:27 +05:30
committed by GitHub
3 changed files with 2 additions and 4 deletions

View File

@@ -32,9 +32,9 @@ export const AlertSnackbar = ({ severity, message, isOpen }: AlertSnackbarProps)
return ( return (
<Snackbar anchorOrigin={{ vertical: 'top', horizontal: 'center' }} open={open} autoHideDuration={5000} onClose={handleClose}> <Snackbar anchorOrigin={{ vertical: 'top', horizontal: 'center' }} open={open} autoHideDuration={5000} onClose={handleClose}>
<Alert onClose={handleClose} severity={severity} sx={{ width: '100%', bgcolor: 'background.paper' }} variant="outlined"> <Alert onClose={handleClose} severity={severity} sx={{ width: '100%', bgcolor: 'background.paper', border: "none" }} variant="outlined">
{message} {message}
</Alert> </Alert>
</Snackbar> </Snackbar>
); );
} }

View File

@@ -56,7 +56,6 @@ const Login = () => {
{ withCredentials: true } { withCredentials: true }
); );
dispatch({ type: "LOGIN", payload: data }); dispatch({ type: "LOGIN", payload: data });
notify("success", t('login.welcome_notification'));
window.localStorage.setItem("user", JSON.stringify(data)); window.localStorage.setItem("user", JSON.stringify(data));
navigate("/"); navigate("/");
} catch (err: any) { } catch (err: any) {

View File

@@ -49,7 +49,6 @@ const Register = () => {
try { try {
const { data } = await axios.post(`${apiUrl}/auth/register`, { email, password }); const { data } = await axios.post(`${apiUrl}/auth/register`, { email, password });
dispatch({ type: "LOGIN", payload: data }); dispatch({ type: "LOGIN", payload: data });
notify("success", t('register.welcome_notification'));
window.localStorage.setItem("user", JSON.stringify(data)); window.localStorage.setItem("user", JSON.stringify(data));
navigate("/"); navigate("/");
} catch (error: any) { } catch (error: any) {