From feb65edee52a5cf977b249087b834bdce21d0b1b Mon Sep 17 00:00:00 2001 From: Tola Leng Date: Wed, 22 Oct 2025 21:06:32 +0700 Subject: [PATCH] refactor: X url link in header --- application/src/components/dashboard/Header.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/application/src/components/dashboard/Header.tsx b/application/src/components/dashboard/Header.tsx index d0db992..f282fcd 100644 --- a/application/src/components/dashboard/Header.tsx +++ b/application/src/components/dashboard/Header.tsx @@ -41,23 +41,19 @@ export const Header = ({ } }; updateGreeting(); - // Update greeting if language changes - // You could add a timer to update the greeting throughout the day - // but that's typically unnecessary since most sessions aren't active across time periods }, [language, t]); // Log avatar data for debugging useEffect(() => { if (currentUser) { - //console.log("Avatar URL in Header:", currentUser.avatar); + } }, [currentUser]); - // Prepare avatar URL - ensure it displays correctly if it's a local profile image let avatarUrl = ''; if (currentUser?.avatar) { - // If it's a relative path from the public folder, make sure it's resolved properly + if (currentUser.avatar.startsWith('/upload/profile/')) { avatarUrl = currentUser.avatar; } else { @@ -155,7 +151,7 @@ export const Header = ({ variant="outline" size="icon" className="rounded-full w-8 h-8 border-border" - onClick={() => window.open("https://x.com/checkcle_oss)", "_blank")} + onClick={() => window.open("https://x.com/checkcle_oss", "_blank")} > X (Twitter)