Merge pull request #927 from getmaxun/cleaner-notifs

feat: cleaner alert notifs
This commit is contained in:
Karishma Shukla
2026-01-04 18:08:41 +05:30
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ export const NavBar: React.FC<NavBarProps> = ({
if (data.ok) { if (data.ok) {
dispatch({ type: "LOGOUT" }); dispatch({ type: "LOGOUT" });
window.localStorage.removeItem("user"); window.localStorage.removeItem("user");
notify('success', t('navbar.notifications.success.logout')); // notify('success', t('navbar.notifications.success.logout'));
navigate("/login"); navigate("/login");
} }
} catch (error: any) { } catch (error: any) {

View File

@@ -32,7 +32,7 @@ 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%' }}> <Alert onClose={handleClose} severity={severity} sx={{ width: '100%', bgcolor: 'background.paper' }} variant="outlined">
{message} {message}
</Alert> </Alert>
</Snackbar> </Snackbar>