summaryrefslogtreecommitdiff
path: root/client/src/components/GlobalSnackbar.tsx
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-10-05 11:06:50 -0700
committerMichael Hunteman <michael@huntm.net>2024-10-05 11:06:50 -0700
commitaacf26f374f48b88d532d1528d9d07aabf537610 (patch)
treea777bb304e16e9bc5bf63f0b91c2ce8c727a7090 /client/src/components/GlobalSnackbar.tsx
parent80c6cc650601613db580c154e8d50e5a13b69f03 (diff)
Add calendar inviteHEADmaster
Diffstat (limited to 'client/src/components/GlobalSnackbar.tsx')
-rw-r--r--client/src/components/GlobalSnackbar.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/components/GlobalSnackbar.tsx b/client/src/components/GlobalSnackbar.tsx
index c4457af..83d6582 100644
--- a/client/src/components/GlobalSnackbar.tsx
+++ b/client/src/components/GlobalSnackbar.tsx
@@ -1,18 +1,18 @@
import React from 'react';
import { Alert, Snackbar } from '@mui/material';
import { useAppDispatch, useAppSelector } from '../hooks';
-import { hideSnackbar, selectSnackbarState } from '../slices/snackbarSlice';
+import { hideSnackbar, selectUIState } from '../slices/uiSlice';
function GlobalSnackbar() {
const dispatch = useAppDispatch();
- const { open, message, severity } = useAppSelector(selectSnackbarState);
+ const { snackbarOpen, message, severity } = useAppSelector(selectUIState);
const handleClose = () => {
dispatch(hideSnackbar());
};
return (
- <Snackbar open={open} onClose={handleClose} autoHideDuration={5000}>
+ <Snackbar open={snackbarOpen} onClose={handleClose} autoHideDuration={5000}>
<div>
<Alert severity={severity} onClose={handleClose}>
{message}