From 2133253836de428e58b4ba1c9b7e863485b6b870 Mon Sep 17 00:00:00 2001
From: Michael Hunteman <michael@huntm.net>
Date: Sat, 21 Sep 2024 08:00:39 -0700
Subject: Use snackbar globally

---
 client/src/components/Status.tsx | 29 -----------------------------
 1 file changed, 29 deletions(-)
 delete mode 100644 client/src/components/Status.tsx

(limited to 'client/src/components/Status.tsx')

diff --git a/client/src/components/Status.tsx b/client/src/components/Status.tsx
deleted file mode 100644
index bdd7fb2..0000000
--- a/client/src/components/Status.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import React from 'react';
-import { useDispatch, useSelector } from 'react-redux';
-import { Alert, Snackbar } from '@mui/material';
-import { close, selectSnackbarState } from '../slices/snackbarSlice';
-
-const Status = () => {
-  const dispatch = useDispatch();
-  const snackbarState = useSelector(selectSnackbarState);
-
-  const closeSnackbar = () => {
-    dispatch(close());
-  };
-
-  return (
-    <Snackbar
-      open={snackbarState.open}
-      onClose={closeSnackbar}
-      autoHideDuration={5000}
-    >
-      <div>
-        <Alert severity={snackbarState.severity} onClose={closeSnackbar}>
-          {snackbarState.message}
-        </Alert>
-      </div>
-    </Snackbar>
-  );
-};
-
-export default Status;
-- 
cgit v1.2.3

