From 9c9e1ed9dedd72087084688d0199e4178f0c5646 Mon Sep 17 00:00:00 2001 From: Kenan KARAER Date: Sat, 10 Jan 2026 21:04:58 +0300 Subject: [PATCH] =?UTF-8?q?Profil=20Hatas=C4=B1=20d=C3=BCzeltme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/dashboard/user-nav.tsx | 2 +- components/ui/button.tsx | 32 +++++++++++++------------------ 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/components/dashboard/user-nav.tsx b/components/dashboard/user-nav.tsx index fad8f90..d0cb34f 100644 --- a/components/dashboard/user-nav.tsx +++ b/components/dashboard/user-nav.tsx @@ -65,7 +65,7 @@ export function UserNav({ user, profile }: UserNavProps) { - +

{profile?.full_name || 'Kullanıcı'}

diff --git a/components/ui/button.tsx b/components/ui/button.tsx index 37a7d4b..f468336 100644 --- a/components/ui/button.tsx +++ b/components/ui/button.tsx @@ -36,27 +36,21 @@ const buttonVariants = cva( } ) -function Button({ - className, - variant = "default", - size = "default", - asChild = false, - ...props -}: React.ComponentProps<"button"> & +const Button = React.forwardRef & VariantProps & { asChild?: boolean - }) { - const Comp = asChild ? Slot : "button" + }>(({ className, variant = "default", size = "default", asChild = false, ...props }, ref) => { + const Comp = asChild ? Slot : "button" - return ( - - ) -} + return ( + + ) + }) +Button.displayName = "Button" export { Button, buttonVariants }