mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-11 07:01:49 +02:00
🔥 Remove unused toast code (#1162)
This commit is contained in:
parent
b79f6720f2
commit
585475f1f2
3 changed files with 0 additions and 17 deletions
|
@ -67,7 +67,6 @@
|
||||||
"react-big-calendar": "^1.8.1",
|
"react-big-calendar": "^1.8.1",
|
||||||
"react-hook-form": "^7.42.1",
|
"react-hook-form": "^7.42.1",
|
||||||
"react-hook-form-persist": "^3.0.0",
|
"react-hook-form-persist": "^3.0.0",
|
||||||
"react-hot-toast": "^2.4.0",
|
|
||||||
"react-i18next": "^12.1.4",
|
"react-i18next": "^12.1.4",
|
||||||
"linkifyjs": "^4.1.3",
|
"linkifyjs": "^4.1.3",
|
||||||
"linkify-react": "^4.1.3",
|
"linkify-react": "^4.1.3",
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import * as Sentry from "@sentry/browser";
|
import * as Sentry from "@sentry/browser";
|
||||||
import { MutationCache } from "@tanstack/react-query";
|
import { MutationCache } from "@tanstack/react-query";
|
||||||
import { httpBatchLink } from "@trpc/client";
|
import { httpBatchLink } from "@trpc/client";
|
||||||
import toast from "react-hot-toast";
|
|
||||||
import superjson from "superjson";
|
import superjson from "superjson";
|
||||||
|
|
||||||
export const trpcConfig = {
|
export const trpcConfig = {
|
||||||
|
@ -21,9 +20,6 @@ export const trpcConfig = {
|
||||||
},
|
},
|
||||||
mutationCache: new MutationCache({
|
mutationCache: new MutationCache({
|
||||||
onError: (error) => {
|
onError: (error) => {
|
||||||
toast.error(
|
|
||||||
"Uh oh! Something went wrong. The issue has been logged and we'll fix it as soon as possible. Please try again later.",
|
|
||||||
);
|
|
||||||
Sentry.captureException(error);
|
Sentry.captureException(error);
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
12
yarn.lock
12
yarn.lock
|
@ -7604,11 +7604,6 @@ globby@^11.1.0:
|
||||||
merge2 "^1.4.1"
|
merge2 "^1.4.1"
|
||||||
slash "^3.0.0"
|
slash "^3.0.0"
|
||||||
|
|
||||||
goober@^2.1.10:
|
|
||||||
version "2.1.12"
|
|
||||||
resolved "https://registry.npmjs.org/goober/-/goober-2.1.12.tgz"
|
|
||||||
integrity sha512-yXHAvO08FU1JgTXX6Zn6sYCUFfB/OJSX8HHjDSgerZHZmFKAb08cykp5LBw5QnmyMcZyPRMqkdyHUSSzge788Q==
|
|
||||||
|
|
||||||
gopd@^1.0.1:
|
gopd@^1.0.1:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz"
|
resolved "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz"
|
||||||
|
@ -10639,13 +10634,6 @@ react-hook-form@^7.42.1:
|
||||||
resolved "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.43.2.tgz"
|
resolved "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.43.2.tgz"
|
||||||
integrity sha512-NvD3Oe2Y9hhqo2R4I4iJigDzSLpdMnzUpNMxlnzTbdiT7NT3BW0GxWCzEtwPudZMUPbZhNcSy1EcGAygyhDORg==
|
integrity sha512-NvD3Oe2Y9hhqo2R4I4iJigDzSLpdMnzUpNMxlnzTbdiT7NT3BW0GxWCzEtwPudZMUPbZhNcSy1EcGAygyhDORg==
|
||||||
|
|
||||||
react-hot-toast@^2.4.0:
|
|
||||||
version "2.4.0"
|
|
||||||
resolved "https://registry.npmjs.org/react-hot-toast/-/react-hot-toast-2.4.0.tgz"
|
|
||||||
integrity sha512-qnnVbXropKuwUpriVVosgo8QrB+IaPJCpL8oBI6Ov84uvHZ5QQcTp2qg6ku2wNfgJl6rlQXJIQU5q+5lmPOutA==
|
|
||||||
dependencies:
|
|
||||||
goober "^2.1.10"
|
|
||||||
|
|
||||||
react-i18next@^12.1.4:
|
react-i18next@^12.1.4:
|
||||||
version "12.2.0"
|
version "12.2.0"
|
||||||
resolved "https://registry.npmjs.org/react-i18next/-/react-i18next-12.2.0.tgz"
|
resolved "https://registry.npmjs.org/react-i18next/-/react-i18next-12.2.0.tgz"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue