From 9f3c7c158346a529c303c5695a829d83c9eda5b3 Mon Sep 17 00:00:00 2001 From: Florian Lauch Date: Mon, 4 Nov 2024 18:19:01 +0900 Subject: [PATCH] fix: next-themes useless --- front/package.json | 1 - front/src/components/ui/sonner.tsx | 4 ---- yarn.lock | 11 ----------- 3 files changed, 16 deletions(-) diff --git a/front/package.json b/front/package.json index a707046..48a1295 100644 --- a/front/package.json +++ b/front/package.json @@ -50,7 +50,6 @@ "cmdk": "1.0.0", "lucide-react": "^0.453.0", "next": "14.2.15", - "next-themes": "^0.4.1", "react": "^18.3.1", "react-dom": "^18.3.1", "sonner": "^1.7.0", diff --git a/front/src/components/ui/sonner.tsx b/front/src/components/ui/sonner.tsx index 7ae58ed..9f45665 100644 --- a/front/src/components/ui/sonner.tsx +++ b/front/src/components/ui/sonner.tsx @@ -1,16 +1,12 @@ "use client"; -import { useTheme } from "next-themes"; import { Toaster as Sonner } from "sonner"; type ToasterProps = React.ComponentProps; const Toaster = ({ ...props }: ToasterProps) => { - const { theme = "system" } = useTheme(); - return (