refactor(client): optimize suspense components

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
2026-01-01 10:38:57 +08:00
committed by Asai Neko
parent 4c438cf4e4
commit b5b4bb9d66
7 changed files with 99 additions and 34 deletions

View File

@@ -7,7 +7,6 @@ import * as React from 'react';
import NixOSLogo from '@/assets/nixos.svg?react';
import { NavMain } from '@/components/nav-main';
import { NavSecondary } from '@/components/nav-secondary';
import { NavUser } from '@/components/nav-user';
import {
Sidebar,
SidebarContent,
@@ -17,6 +16,7 @@ import {
SidebarMenuButton,
SidebarMenuItem,
} from '@/components/ui/sidebar';
import { NavUser } from './nav-user';
const data = {
user: {
@@ -48,7 +48,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
<SidebarMenuItem>
<SidebarMenuButton
asChild
className="data-[slot=sidebar-menu-button]:!p-1.5"
className="data-[slot=sidebar-menu-button]:p-1.5!"
>
<a href="#">
<NixOSLogo />