diff --git a/src/components/navbar/navbar.tsx b/src/components/navbar/navbar.tsx index 57e17e0..f562938 100644 --- a/src/components/navbar/navbar.tsx +++ b/src/components/navbar/navbar.tsx @@ -33,6 +33,8 @@ const renderNavbarItem = (item: NavbarItem) => ( ); export default function Navbar() { + const rightItem = items[items.length - 1]; + return (
@@ -41,18 +43,16 @@ export default function Navbar() { {items.slice(0, -1).map((item, index) => ( - - {renderNavbarItem(item)} - + + {renderNavbarItem(item)} + ))}
{/* Right-aligned item */} - - - {renderNavbarItem(items[items.length - 1])} - - + + {renderNavbarItem(rightItem)} +
); diff --git a/src/components/navbar/profile-button.tsx b/src/components/navbar/profile-button.tsx index c224fa3..3b22f56 100644 --- a/src/components/navbar/profile-button.tsx +++ b/src/components/navbar/profile-button.tsx @@ -19,19 +19,13 @@ export default function ProfileButton() { } return ( - - + + - +

You

- -
+
+ ); }