From cac78fbe86b2a99d77ecdcf5f1bdf1bfb4a87119 Mon Sep 17 00:00:00 2001 From: Bastien Dumont <bdumont@grandlyon.com> Date: Mon, 11 Sep 2023 17:36:19 +0200 Subject: [PATCH] remove custom styles --- src/App.tsx | 5 +---- src/styles/_toast.scss | 25 ------------------------- src/styles/index.scss | 1 - 3 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 src/styles/_toast.scss diff --git a/src/App.tsx b/src/App.tsx index 75c23b35..292c788d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -16,10 +16,7 @@ function App() { <Router /> </Layout> </UserContext.Provider> - <ToastContainer - progressClassName="toastProgress" - bodyClassName="toastBody" - /> + <ToastContainer theme="colored" /> </BrowserRouter> ) } diff --git a/src/styles/_toast.scss b/src/styles/_toast.scss deleted file mode 100644 index 9654eb81..00000000 --- a/src/styles/_toast.scss +++ /dev/null @@ -1,25 +0,0 @@ -@import 'config/colors'; - -.Toastify__toast { - background: #fafafa !important; -} -.Toastify__toast--success { - .toastBody { - color: #73a839; - } - .toastProgress { - background: #73a839 !important; - } -} - -.Toastify__toast--error { - .toastBody { - color: #c71c22; - } - .toastProgress { - background: #c71c22 !important; - } -} -.toastBody { - font-size: 1rem !important; -} diff --git a/src/styles/index.scss b/src/styles/index.scss index 722b9ca9..d847b574 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -2,7 +2,6 @@ @import 'config/colors'; @import 'config/typography'; @import 'config/layout'; -@import 'toast'; * { margin: 0; -- GitLab