feat: refactor theme management and remove next-themes dependency
Docker images / backend-image (push) Successful in 2m35s
Docker images / frontend-image (push) Successful in 2m9s
Docker images / updater-image (push) Successful in 38s
Docker images / notify-webhook (push) Has been skipped

- Replaced the next-themes package with a custom ThemeProvider component for enhanced theme management.
- Implemented local storage handling for theme persistence and system theme detection.
- Updated the Toaster component to utilize the new theme context.
- Removed unused next-themes references from package.json and package-lock.json.
This commit is contained in:
Denozordec
2026-05-12 16:07:40 +07:00
parent bb07ba0f69
commit 40e2040fb0
5 changed files with 159 additions and 50 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
"use client"
import { useTheme } from "next-themes"
import { useTheme } from "@/components/theme-provider"
import { Toaster as Sonner, type ToasterProps } from "sonner"
const Toaster = ({ ...props }: ToasterProps) => {