feat: update theme management across the application; change default theme to 'light', disable system theme option, and add ThemeCard component in settings for enhanced user customization
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m23s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m23s
This commit is contained in:
@@ -4,11 +4,11 @@ import { useTheme } from "next-themes";
|
||||
import { Toaster as Sonner, ToasterProps } from "sonner";
|
||||
|
||||
const Toaster = ({ ...props }: ToasterProps) => {
|
||||
const { theme = "system" } = useTheme();
|
||||
const { theme = "light" } = useTheme();
|
||||
|
||||
return (
|
||||
<Sonner
|
||||
theme={theme as ToasterProps["theme"]}
|
||||
theme={theme === "system" ? "dark" : (theme as ToasterProps["theme"])}
|
||||
className="toaster group"
|
||||
style={
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user