refatcor: remove old tostafiy npm package

This commit is contained in:
2026-07-09 13:21:10 +02:00
parent 57fe6dc9ac
commit 0d4a048d16
3 changed files with 3 additions and 21 deletions
-1
View File
@@ -30,7 +30,6 @@
"react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-i18next": "^17.0.8", "react-i18next": "^17.0.8",
"react-toastify": "^11.1.0",
"tailwindcss": "^4.3.0", "tailwindcss": "^4.3.0",
"validator": "^13.15.35", "validator": "^13.15.35",
"zod": "^4.4.3" "zod": "^4.4.3"
+3 -19
View File
@@ -1,9 +1,9 @@
import { createRouter, RouterProvider } from "@tanstack/react-router"; import { createRouter, RouterProvider } from "@tanstack/react-router";
import "./App.css"; import "./App.css";
import { ToastContainer } from "react-toastify";
import { routeTree } from "./routeTree.gen"; import { routeTree } from "./routeTree.gen";
import { NotFound } from "./components/NotFound.tsx";
const router = createRouter({ routeTree }); const router = createRouter({ routeTree, defaultNotFoundComponent: NotFound });
declare module "@tanstack/react-router" { declare module "@tanstack/react-router" {
interface Register { interface Register {
@@ -12,23 +12,7 @@ declare module "@tanstack/react-router" {
} }
function App() { function App() {
return ( return <RouterProvider router={router} />;
<>
<ToastContainer
position="top-right"
autoClose={5000}
hideProgressBar={false}
newestOnTop={false}
closeOnClick={false}
rtl={false}
pauseOnFocusLoss
draggable
pauseOnHover
theme="colored"
/>
<RouterProvider router={router} />
</>
);
} }
export default App; export default App;
-1
View File
@@ -59,7 +59,6 @@
"react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-i18next": "^17.0.8", "react-i18next": "^17.0.8",
"react-toastify": "^11.1.0",
"tailwindcss": "^4.3.0", "tailwindcss": "^4.3.0",
"validator": "^13.15.35", "validator": "^13.15.35",
"zod": "^4.4.3" "zod": "^4.4.3"