diff options
author | 2024-09-05 18:48:10 +0100 | |
---|---|---|
committer | 2024-09-05 18:48:10 +0100 | |
commit | bd3e823cf56763635aab0347976f955d025df8e6 (patch) | |
tree | 4f122ac7a843ef6d7d65060bbed52023e79c3b77 | |
parent | Add react-toastify (diff) |
Add toast container
-rw-r--r-- | thallium-frontend/src/App.tsx | 17 |
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 /> |