From c019b7bc08ee7299f9ec93d55bcdd6e643122bee Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Wed, 4 Jun 2025 17:20:59 -0400 Subject: [PATCH] Fixing snackbar issue --- frontend/src/components/EventList.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/EventList.tsx b/frontend/src/components/EventList.tsx index efae93a..9874c62 100644 --- a/frontend/src/components/EventList.tsx +++ b/frontend/src/components/EventList.tsx @@ -15,7 +15,9 @@ 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'; @@ -82,7 +84,7 @@ const EventList: React.FC = () => { }); }; - const handleCloseSnackbar = (event?: React.SyntheticEvent | Event, reason?: string) => { + const handleCloseSnackbar = (event: SyntheticEvent | Event, reason: SnackbarCloseReason) => { if (reason === 'clickaway') { return; }