added settings page

This commit is contained in:
2026-05-29 22:16:18 +02:00
parent 3582e377f1
commit 344f0461b4
14 changed files with 275 additions and 42 deletions
+7 -6
View File
@@ -3,8 +3,9 @@ import { Button, Typography } from "@mui/joy";
import InventoryIcon from "@mui/icons-material/Inventory";
import AddBoxIcon from "@mui/icons-material/AddBox";
import StorageIcon from "@mui/icons-material/Storage";
import AccountBoxIcon from "@mui/icons-material/AccountBox";
import SettingsIcon from "@mui/icons-material/Settings";
import { useNavigate, useMatchRoute } from "@tanstack/react-router";
import Cookies from "js-cookie";
export const Sidebar = () => {
const { t } = useTranslation();
@@ -30,7 +31,7 @@ export const Sidebar = () => {
level="body-lg"
className="text-sm font-medium text-slate-500"
>
{t("app-subtitle")}
{Cookies.get("app-name") ? Cookies.get("app-name") : ""}
</Typography>
</div>
@@ -60,12 +61,12 @@ export const Sidebar = () => {
{t("storages")}
</Button>
<Button
onClick={() => navigate({ to: "/app/profile" })}
variant={variant("/app/profile")}
startDecorator={<AccountBoxIcon />}
onClick={() => navigate({ to: "/app/app-settings" })}
variant={variant("/app/app-settings")}
startDecorator={<SettingsIcon />}
className={btnClass}
>
{t("profile")}
{t("settings")}
</Button>
</div>