Merge pull request #9 from Ryderjj89/dev

Fixing snackbar issue
This commit is contained in:
Joshua Ryder
2025-06-04 17:26:19 -04:00
committed by GitHub

View File

@@ -15,9 +15,7 @@ import {
FormControlLabel,
Snackbar,
Alert,
SyntheticEvent, // Import SyntheticEvent
} from '@mui/material';
import { SnackbarCloseReason } from '@mui/material/Snackbar'; // Import SnackbarCloseReason
import AdminPanelSettingsIcon from '@mui/icons-material/AdminPanelSettings';
import VisibilityIcon from '@mui/icons-material/Visibility';
import HowToRegIcon from '@mui/icons-material/HowToReg';
@@ -84,10 +82,7 @@ const EventList: React.FC = () => {
});
};
const handleCloseSnackbar = (event: SyntheticEvent | Event, reason: SnackbarCloseReason) => {
if (reason === 'clickaway') {
return;
}
const handleCloseSnackbar = () => {
setOpenSnackbar(false);
};