fix: pass bgcolor

This commit is contained in:
Karishma Shukla
2025-12-21 17:12:06 +05:30
committed by GitHub
parent 9215e23aae
commit b561e9e6a5

View File

@@ -32,7 +32,7 @@ export const AlertSnackbar = ({ severity, message, isOpen }: AlertSnackbarProps)
return (
<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' }}>
{message}
</Alert>
</Snackbar>