Address settings nav doctor warnings
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
0a10cb62c0
commit
ea12bee21c
2 files changed
+3
-3
No files matched your search
@@ -62,7 +62,7 @@ export function SettingsSidebarNav({ pathname }: { pathname: string }) {
|
||||
<SidebarMenuItem>
|
||||
<SidebarMenuButton
|
||||
size="sm"
|
||||
className="gap-2 px-2 py-2 text-xs text-muted-foreground hover:bg-accent hover:text-foreground"
|
||||
className="gap-2 p-2 text-xs text-muted-foreground hover:bg-accent hover:text-foreground"
|
||||
onClick={handleBackClick}
|
||||
>
|
||||
<ArrowLeftIcon className="size-4" />
|
||||
|
||||
@@ -15,7 +15,7 @@ export const SettingsSidebarNavItem = memo(function SettingsSidebarNavItem({
|
||||
onSelect,
|
||||
}: SettingsSidebarNavItemProps) {
|
||||
const Icon = item.icon;
|
||||
const handleClick = useCallback(() => {
|
||||
const selectSettingsSection = useCallback(() => {
|
||||
onSelect(item.to);
|
||||
}, [item.to, onSelect]);
|
||||
|
||||
@@ -29,7 +29,7 @@ export const SettingsSidebarNavItem = memo(function SettingsSidebarNavItem({
|
||||
? "gap-2.5 px-2.5 py-2 text-left text-[13px] font-medium text-foreground"
|
||||
: "gap-2.5 px-2.5 py-2 text-left text-[13px] text-muted-foreground/70 hover:text-foreground/80"
|
||||
}
|
||||
onClick={handleClick}
|
||||
onClick={selectSettingsSection}
|
||||
>
|
||||
<Icon
|
||||
className={
|
||||
|
||||
Reference in new issue
Block a user