From f41316182282551a522cf18e74aeeef95e73ddbc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 24 Jan 2024 09:20:17 -0800 Subject: [PATCH] fix(deps): update dependency react-toastify to v10 (#793) * fix(deps): update dependency react-toastify to v10 * Update for new version --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Derek Roberts --- frontend/package-lock.json | 16 ++++++++-------- frontend/package.json | 2 +- frontend/src/config/ToastifyConfig.ts | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index fcd8269e1..57e17eb34 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -44,7 +44,7 @@ "react-hash-string": "^1.0.0", "react-router-dom": "^6.21.2", "react-test-renderer": "^18.2.0", - "react-toastify": "^9.1.3", + "react-toastify": "^10.0.0", "sass": "1.70.0", "ts-jest": "^29.1.0", "typescript": "^5.1.3", @@ -14431,9 +14431,9 @@ } }, "node_modules/clsx": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", - "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.0.tgz", + "integrity": "sha512-m3iNNWpd9rl3jvvcBnu70ylMdrXt8Vlq4HYadnU5fwcOtvkSQWPmj7amUcDT2qYI7risszBjI5AUIUox9D16pg==", "engines": { "node": ">=6" } @@ -24871,11 +24871,11 @@ } }, "node_modules/react-toastify": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/react-toastify/-/react-toastify-9.1.3.tgz", - "integrity": "sha512-fPfb8ghtn/XMxw3LkxQBk3IyagNpF/LIKjOBflbexr2AWxAH1MJgvnESwEwBn9liLFXgTKWgBSdZpw9m4OTHTg==", + "version": "10.0.4", + "resolved": "https://registry.npmjs.org/react-toastify/-/react-toastify-10.0.4.tgz", + "integrity": "sha512-etR3RgueY8pe88SA67wLm8rJmL1h+CLqUGHuAoNsseW35oTGJEri6eBTyaXnFKNQ80v/eO10hBYLgz036XRGgA==", "dependencies": { - "clsx": "^1.1.1" + "clsx": "^2.1.0" }, "peerDependencies": { "react": ">=16", diff --git a/frontend/package.json b/frontend/package.json index 6edaa4956..9ca04eb7b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -38,7 +38,7 @@ "react-hash-string": "^1.0.0", "react-router-dom": "^6.21.2", "react-test-renderer": "^18.2.0", - "react-toastify": "^9.1.3", + "react-toastify": "^10.0.0", "sass": "1.70.0", "ts-jest": "^29.1.0", "typescript": "^5.1.3", diff --git a/frontend/src/config/ToastifyConfig.ts b/frontend/src/config/ToastifyConfig.ts index 11059ed2f..04b022d21 100644 --- a/frontend/src/config/ToastifyConfig.ts +++ b/frontend/src/config/ToastifyConfig.ts @@ -3,11 +3,11 @@ * see usage in src/components/ApplicantInformationForm/index.tsx. */ -import { ToastOptions, toast } from 'react-toastify'; +import { ToastOptions } from 'react-toastify'; import { SEVEN_SECONDS } from './TimeUnits'; export const ErrToastOption: ToastOptions = { - position: toast.POSITION.TOP_RIGHT, + position: 'top-right', icon: false, closeButton: false, theme: 'dark',