Skip to content

Commit

Permalink
omit legacy toastr
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-takei committed Aug 2, 2023
1 parent a3d4e30 commit 4824f06
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@
"swagger-jsdoc": "^6.1.0",
"swr": "^2.0.3",
"throttle-debounce": "^5.0.0",
"toastr": "^2.1.2",
"uglifycss": "^0.0.29",
"universal-bunyan": "^0.9.2",
"unstated": "^2.1.1",
Expand Down
3 changes: 1 addition & 2 deletions apps/app/src/client/util/toastr.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { toast, ToastContent, ToastOptions } from 'react-toastify';
import * as toastrLegacy from 'toastr';

import { toArrayIfNot } from '~/utils/array-utils';

Expand Down Expand Up @@ -34,5 +33,5 @@ export const toastWarningOption: ToastOptions = {
closeButton: true,
};
export const toastWarning = (content: ToastContent, option: ToastOptions = toastWarningOption): void => {
toastrLegacy.warning(content, option);
toast.warning(content, option);
};
11 changes: 0 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10372,11 +10372,6 @@ jpeg-js@^0.4.0, jpeg-js@^0.4.2:
resolved "https://registry.yarnpkg.com/jpeg-js/-/jpeg-js-0.4.4.tgz#a9f1c6f1f9f0fa80cdb3484ed9635054d28936aa"
integrity sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==

jquery@>=1.12.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.6.0.tgz#c72a09f15c1bdce142f49dbf1170bdf8adac2470"
integrity sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==

js-string-escape@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/js-string-escape/-/js-string-escape-1.0.1.tgz#e2625badbc0d67c7533e9edc1068c587ae4137ef"
Expand Down Expand Up @@ -15803,12 +15798,6 @@ to-vfile@^7.0.0:
is-buffer "^2.0.0"
vfile "^5.1.0"

toastr@^2.1.2:
version "2.1.4"
resolved "https://registry.yarnpkg.com/toastr/-/toastr-2.1.4.tgz#8b43be64fb9d0c414871446f2db8e8ca4e95f181"
dependencies:
jquery ">=1.12.0"

toggle-selection@^1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/toggle-selection/-/toggle-selection-1.0.6.tgz#6e45b1263f2017fa0acc7d89d78b15b8bf77da32"
Expand Down

0 comments on commit 4824f06

Please sign in to comment.