chore: build
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled

This commit is contained in:
2025-10-27 21:32:05 +05:45
parent ce66173edb
commit 9c703306ec
66 changed files with 525 additions and 535 deletions

View File

@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
import { Head } from "@inertiajs/react";
import { useState, useCallback, useEffect } from "react";
import { c as cn } from "./index-CY6fYws-.js";
import { Sun, Moon, Monitor } from "lucide-react";
import { Sun } from "lucide-react";
import { e as edit, S as SettingsLayout, H as HeadingSmall } from "./layout-BQI5MpcL.js";
import { A as AppLayout } from "./app-layout-BFyUFda2.js";
import "@radix-ui/react-slot";
@@ -48,7 +48,7 @@ const handleSystemThemeChange = () => {
applyTheme(currentAppearance || "system");
};
function useAppearance() {
const [appearance, setAppearance] = useState("system");
const [appearance, setAppearance] = useState("light");
const updateAppearance = useCallback((mode) => {
setAppearance(mode);
localStorage.setItem("appearance", mode);
@@ -59,7 +59,7 @@ function useAppearance() {
const savedAppearance = localStorage.getItem(
"appearance"
);
updateAppearance(savedAppearance || "system");
updateAppearance(savedAppearance || "light");
return () => mediaQuery()?.removeEventListener(
"change",
handleSystemThemeChange
@@ -73,9 +73,9 @@ function AppearanceToggleTab({
}) {
const { appearance, updateAppearance } = useAppearance();
const tabs = [
{ value: "light", icon: Sun, label: "Light" },
{ value: "dark", icon: Moon, label: "Dark" },
{ value: "system", icon: Monitor, label: "System" }
{ value: "light", icon: Sun, label: "Light" }
// { value: 'dark', icon: Moon, label: 'Dark' },
// { value: 'system', icon: Monitor, label: 'System' },
];
return /* @__PURE__ */ jsx(
"div",