chore(format): run prettier

This commit is contained in:
zetaloop
2026-02-25 05:37:27 +08:00
parent c301dbd3c2
commit 807c329e87
8 changed files with 210 additions and 157 deletions
+21 -4
View File
@@ -121,7 +121,11 @@ export function Header() {
<>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" size="sm" className="hidden md:flex text-xs h-8 text-muted-foreground hover:text-foreground">
<Button
variant="ghost"
size="sm"
className="hidden md:flex text-xs h-8 text-muted-foreground hover:text-foreground"
>
{roleLabels[currentRole]}
</Button>
</DropdownMenuTrigger>
@@ -140,7 +144,12 @@ export function Header() {
</DropdownMenuContent>
</DropdownMenu>
<Button variant="ghost" size="icon" className="relative h-9 w-9 text-muted-foreground hover:text-foreground" asChild>
<Button
variant="ghost"
size="icon"
className="relative h-9 w-9 text-muted-foreground hover:text-foreground"
asChild
>
<Link href="/notifications">
<Bell className="h-4 w-4" />
{unreadCount > 0 && (
@@ -153,7 +162,11 @@ export function Header() {
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" size="icon" className="rounded-full h-9 w-9 text-muted-foreground hover:text-foreground">
<Button
variant="ghost"
size="icon"
className="rounded-full h-9 w-9 text-muted-foreground hover:text-foreground"
>
<Avatar className="h-7 w-7">
<AvatarImage src={user?.avatar} />
<AvatarFallback>{user?.nickname?.[0] ?? "?"}</AvatarFallback>
@@ -224,7 +237,11 @@ export function Header() {
<Sheet open={mobileOpen} onOpenChange={setMobileOpen}>
<SheetTrigger asChild>
<Button variant="ghost" size="icon" className="md:hidden h-9 w-9 text-muted-foreground hover:text-foreground">
<Button
variant="ghost"
size="icon"
className="md:hidden h-9 w-9 text-muted-foreground hover:text-foreground"
>
<Menu className="h-5 w-5" />
</Button>
</SheetTrigger>