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> </Avatar>
</Button> </Button>
</DropdownMenuTrigger> </DropdownMenuTrigger>
<DropdownMenuContent className="w-56" align="end" forceMount> <DropdownMenuContent className="w-56" align="end">
<DropdownMenuLabel className="font-normal"> <DropdownMenuLabel className="font-normal">
<div className="flex flex-col space-y-1"> <div className="flex flex-col space-y-1">
<p className="text-sm font-medium leading-none">{profile?.full_name || 'Kullanıcı'}</p> <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({ const Button = React.forwardRef<HTMLButtonElement, React.ComponentProps<"button"> &
className,
variant = "default",
size = "default",
asChild = false,
...props
}: React.ComponentProps<"button"> &
VariantProps<typeof buttonVariants> & { VariantProps<typeof buttonVariants> & {
asChild?: boolean asChild?: boolean
}) { }>(({ className, variant = "default", size = "default", asChild = false, ...props }, ref) => {
const Comp = asChild ? Slot : "button" const Comp = asChild ? Slot : "button"
return ( return (
<Comp <Comp
data-slot="button" data-slot="button"
data-variant={variant} className={cn(buttonVariants({ variant, size, className }))}
data-size={size} ref={ref}
className={cn(buttonVariants({ variant, size, className }))} {...props}
{...props} />
/> )
) })
} Button.displayName = "Button"
export { Button, buttonVariants } export { Button, buttonVariants }