feat(web): render configured app_name for brand + login; drop hardcoded app.name (#54)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,7 @@ import type { LucideIcon } from "lucide-react";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Tooltip } from "@/components/ui/tooltip";
|
||||
import { useMediaQuery } from "@/lib/use-media-query";
|
||||
import { useConfig } from "../config/config-context";
|
||||
|
||||
const STORAGE_KEY = "sidebar-collapsed";
|
||||
|
||||
@@ -50,6 +51,7 @@ function navLinkClass(collapsed: boolean) {
|
||||
|
||||
export function Sidebar() {
|
||||
const { t } = useTranslation();
|
||||
const { app_name } = useConfig();
|
||||
const narrow = useMediaQuery("(max-width: 768px)");
|
||||
const [stored, setStored] = useState(readStored);
|
||||
|
||||
@@ -73,7 +75,7 @@ export function Sidebar() {
|
||||
)}
|
||||
>
|
||||
<div className="mb-4 flex items-center justify-between">
|
||||
{!collapsed && <span className="font-semibold">{t("app.name")}</span>}
|
||||
{!collapsed && <span className="font-semibold">{app_name}</span>}
|
||||
<button
|
||||
type="button"
|
||||
onClick={toggle}
|
||||
|
||||
Reference in New Issue
Block a user