Profil Hatası düzeltme

This commit is contained in:
2026-01-10 21:04:58 +03:00
parent a41da2286f
commit 9c9e1ed9de
2 changed files with 14 additions and 20 deletions

View File

@@ -65,7 +65,7 @@ export function UserNav({ user, profile }: UserNavProps) {
</Avatar>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-56" align="end" forceMount>
<DropdownMenuContent className="w-56" align="end">
<DropdownMenuLabel className="font-normal">
<div className="flex flex-col space-y-1">
<p className="text-sm font-medium leading-none">{profile?.full_name || 'Kullanıcı'}</p>

View File

@@ -36,27 +36,21 @@ const buttonVariants = cva(
}
)
function Button({
className,
variant = "default",
size = "default",
asChild = false,
...props
}: React.ComponentProps<"button"> &
const Button = React.forwardRef<HTMLButtonElement, React.ComponentProps<"button"> &
VariantProps<typeof buttonVariants> & {
asChild?: boolean
}) {
}>(({ className, variant = "default", size = "default", asChild = false, ...props }, ref) => {
const Comp = asChild ? Slot : "button"
return (
<Comp
data-slot="button"
data-variant={variant}
data-size={size}
className={cn(buttonVariants({ variant, size, className }))}
ref={ref}
{...props}
/>
)
}
})
Button.displayName = "Button"
export { Button, buttonVariants }