Skip to content

Commit

Permalink
fix: next-themes useless
Browse files Browse the repository at this point in the history
  • Loading branch information
EdenComp committed Nov 4, 2024
1 parent 2e98b4c commit 9f3c7c1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 0 additions & 4 deletions front/src/components/ui/sonner.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
"use client";

import { useTheme } from "next-themes";
import { Toaster as Sonner } from "sonner";

type ToasterProps = React.ComponentProps<typeof Sonner>;

const Toaster = ({ ...props }: ToasterProps) => {
const { theme = "system" } = useTheme();

return (
<Sonner
theme={theme as ToasterProps["theme"]}
className="toaster group"
toastOptions={{
classNames: {
Expand Down
11 changes: 0 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12321,7 +12321,6 @@ __metadata:
jest-environment-jsdom: "npm:^29.7.0"
lucide-react: "npm:^0.453.0"
next: "npm:14.2.15"
next-themes: "npm:^0.4.1"
postcss: "npm:^8.4.47"
prettier: "npm:^3.3.3"
react: "npm:^18.3.1"
Expand Down Expand Up @@ -15278,16 +15277,6 @@ __metadata:
languageName: node
linkType: hard

"next-themes@npm:^0.4.1":
version: 0.4.1
resolution: "next-themes@npm:0.4.1"
peerDependencies:
react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
checksum: 10c0/6ce1b11c3cc836755a130d8e668496cb8bb0e82a984fe7d8bbebd3a23668d8fa552a398898c22c76a341ffb9580d43f50bbe3bb7494f23f2e536fe670fb50f4e
languageName: node
linkType: hard

"next-tick@npm:^1.1.0":
version: 1.1.0
resolution: "next-tick@npm:1.1.0"
Expand Down

0 comments on commit 9f3c7c1

Please sign in to comment.