fix: sonner theme not work

This commit is contained in:
ReaJason
2025-02-15 13:50:04 +08:00
parent b287fcd36f
commit f8624f0e72
3 changed files with 3 additions and 4 deletions
-2
View File
@@ -3,7 +3,6 @@ import ReactDOM from "react-dom/client";
import { routeTree } from "./routeTree.gen";
import "./index.css";
import { TailwindIndicator } from "@/components/tailwind-indicator.tsx";
import { Toaster } from "@/components/ui/sonner.tsx";
import { env } from "@/config.ts";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { I18nextProvider } from "react-i18next";
@@ -29,7 +28,6 @@ if (!rootElement.innerHTML) {
root.render(
<QueryClientProvider client={queryClient}>
<I18nextProvider i18n={i18n}>
<Toaster />
<RouterProvider router={router} />
{env.MODE !== "production" && <TailwindIndicator />}
</I18nextProvider>