Fix warnings

This commit is contained in:
Nicolas Mowen 2024-03-03 21:23:35 -07:00
parent 6188a622d3
commit 6e3e1f6314
2 changed files with 3 additions and 4 deletions

View File

@ -31,7 +31,7 @@ export function CameraGroupSelector() {
className={
group == undefined
? "text-selected bg-blue-900 focus:bg-blue-900 bg-opacity-60 focus:bg-opacity-60"
: "text-muted-foreground bg-secondary"
: "text-muted-foreground bg-secondary focus:text-muted-foreground focus:bg-secondary"
}
size="xs"
onClick={() => navigate(-1)}

View File

@ -11,17 +11,16 @@ function Sidebar() {
<div className="w-full flex flex-col gap-0 items-center">
<Logo className="w-8 h-8 mb-6" />
{navbarLinks.map((item) => (
<>
<div key={item.id}>
<NavItem
className={`mx-[10px] ${item.id == 1 ? "mb-2" : "mb-6"}`}
key={item.id}
Icon={item.icon}
title={item.title}
url={item.url}
dev={item.dev}
/>
{item.id == 1 && <CameraGroupSelector />}
</>
</div>
))}
</div>
<SettingsNavItems className="hidden md:flex flex-col items-center mb-8" />