aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-frontend
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-09-05 18:48:10 +0100
committerGravatar Joe Banks <[email protected]>2024-09-05 18:48:10 +0100
commitbd3e823cf56763635aab0347976f955d025df8e6 (patch)
tree4f122ac7a843ef6d7d65060bbed52023e79c3b77 /thallium-frontend
parentAdd react-toastify (diff)
Add toast container
Diffstat (limited to 'thallium-frontend')
-rw-r--r--thallium-frontend/src/App.tsx17
1 files changed, 17 insertions, 0 deletions
diff --git a/thallium-frontend/src/App.tsx b/thallium-frontend/src/App.tsx
index 54782cf..9bd78e1 100644
--- a/thallium-frontend/src/App.tsx
+++ b/thallium-frontend/src/App.tsx
@@ -16,6 +16,11 @@ const DesignSystem = React.lazy(() => import("./pages/DesignSystem"));
const StorePage = React.lazy(() => import("./pages/StorePage"));
import { maybeRefreshTask } from "./api/jwt";
+import { ToastContainer } from "react-toastify";
+
+import "react-toastify/dist/ReactToastify.css";
+import "./styles/toast-overrides.css";
+
const GlobalStyle = createGlobalStyle`
html,
@@ -101,6 +106,18 @@ function App() {
return (
<ThemeProvider theme={theme}>
<AppContainer>
+ <ToastContainer
+ position="top-right"
+ autoClose={5000}
+ newestOnTop={false}
+ closeOnClick
+ rtl={false}
+ pauseOnFocusLoss
+ draggable
+ pauseOnHover
+ theme={isDarkMode ? "dark" : "light"}
+
+ />
<GlobalStyle />
<ContentContainer>
<Header />