Revert "ui: move settings to footer icon beside theme toggle"
This reverts commit f3a9b6de21.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { useCallback, useEffect, useRef, useState, type UIEvent } from "react";
|
import { useCallback, useEffect, useRef, useState, type UIEvent } from "react";
|
||||||
import { useQuery } from "@tanstack/react-query";
|
import { useQuery } from "@tanstack/react-query";
|
||||||
import { BookOpen, Moon, Settings, Sun } from "lucide-react";
|
import { BookOpen, Moon, Sun } from "lucide-react";
|
||||||
import { Link, Outlet, useLocation, useNavigate, useParams } from "@/lib/router";
|
import { Outlet, useLocation, useNavigate, useParams } from "@/lib/router";
|
||||||
import { CompanyRail } from "./CompanyRail";
|
import { CompanyRail } from "./CompanyRail";
|
||||||
import { Sidebar } from "./Sidebar";
|
import { Sidebar } from "./Sidebar";
|
||||||
import { SidebarNavItem } from "./SidebarNavItem";
|
import { SidebarNavItem } from "./SidebarNavItem";
|
||||||
@@ -221,11 +221,6 @@ export function Layout() {
|
|||||||
icon={BookOpen}
|
icon={BookOpen}
|
||||||
className="flex-1 min-w-0"
|
className="flex-1 min-w-0"
|
||||||
/>
|
/>
|
||||||
<Button asChild type="button" variant="ghost" size="icon-sm" className="text-muted-foreground shrink-0">
|
|
||||||
<Link to="/company/settings" aria-label="Open company settings" title="Company settings">
|
|
||||||
<Settings className="h-4 w-4" />
|
|
||||||
</Link>
|
|
||||||
</Button>
|
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
@@ -261,11 +256,6 @@ export function Layout() {
|
|||||||
icon={BookOpen}
|
icon={BookOpen}
|
||||||
className="flex-1 min-w-0"
|
className="flex-1 min-w-0"
|
||||||
/>
|
/>
|
||||||
<Button asChild type="button" variant="ghost" size="icon-sm" className="text-muted-foreground shrink-0">
|
|
||||||
<Link to="/company/settings" aria-label="Open company settings" title="Company settings">
|
|
||||||
<Settings className="h-4 w-4" />
|
|
||||||
</Link>
|
|
||||||
</Button>
|
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import {
|
|||||||
Search,
|
Search,
|
||||||
SquarePen,
|
SquarePen,
|
||||||
Network,
|
Network,
|
||||||
|
Settings,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { useQuery } from "@tanstack/react-query";
|
import { useQuery } from "@tanstack/react-query";
|
||||||
import { SidebarSection } from "./SidebarSection";
|
import { SidebarSection } from "./SidebarSection";
|
||||||
@@ -98,6 +99,7 @@ export function Sidebar() {
|
|||||||
<SidebarNavItem to="/org" label="Org" icon={Network} />
|
<SidebarNavItem to="/org" label="Org" icon={Network} />
|
||||||
<SidebarNavItem to="/costs" label="Costs" icon={DollarSign} />
|
<SidebarNavItem to="/costs" label="Costs" icon={DollarSign} />
|
||||||
<SidebarNavItem to="/activity" label="Activity" icon={History} />
|
<SidebarNavItem to="/activity" label="Activity" icon={History} />
|
||||||
|
<SidebarNavItem to="/company/settings" label="Settings" icon={Settings} />
|
||||||
</SidebarSection>
|
</SidebarSection>
|
||||||
</nav>
|
</nav>
|
||||||
</aside>
|
</aside>
|
||||||
|
|||||||
Reference in New Issue
Block a user