From b8e7abeed586103b40d6f28d308e5ad62b4f5b73 Mon Sep 17 00:00:00 2001 From: Renovate-Bot <le.rameur.94@gmail.com> Date: Mon, 11 Sep 2023 15:38:59 +0000 Subject: [PATCH] fix(deps): update dependency react-toastify to v9 --- package.json | 2 +- src/App.tsx | 5 +---- src/styles/_toast.scss | 25 ------------------------- src/styles/index.scss | 1 - yarn.lock | 8 ++++---- 5 files changed, 6 insertions(+), 35 deletions(-) delete mode 100644 src/styles/_toast.scss diff --git a/package.json b/package.json index 1f66723b..4730416f 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "react-draft-wysiwyg": "^1.15.0", "react-router-dom": "^5.2.0", "react-scripts": "^5.0.1", - "react-toastify": "^7.0.4", + "react-toastify": "^9.0.0", "sass": "^1.35.2", "typescript": "^4.1.2", "web-vitals": "^1.0.1" 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; diff --git a/yarn.lock b/yarn.lock index 14019fc0..50dd6919 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8186,10 +8186,10 @@ react-scripts@^5.0.1: optionalDependencies: fsevents "^2.3.2" -react-toastify@^7.0.4: - version "7.0.4" - resolved "https://registry.yarnpkg.com/react-toastify/-/react-toastify-7.0.4.tgz#7d0b743f2b96f65754264ca6eae31911a82378db" - integrity sha512-Rol7+Cn39hZp5hQ/k6CbMNE2CKYV9E5OQdC/hBLtIQU2xz7DdAm7xil4NITQTHR6zEbE5RVFbpgSwTD7xRGLeQ== +react-toastify@^9.0.0: + version "9.1.3" + resolved "https://registry.yarnpkg.com/react-toastify/-/react-toastify-9.1.3.tgz#1e798d260d606f50e0fab5ee31daaae1d628c5ff" + integrity sha512-fPfb8ghtn/XMxw3LkxQBk3IyagNpF/LIKjOBflbexr2AWxAH1MJgvnESwEwBn9liLFXgTKWgBSdZpw9m4OTHTg== dependencies: clsx "^1.1.1" -- GitLab