From 3f0821eb33db1169d8220b8942f35cd9a5500789 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Sun, 14 Jan 2024 23:31:50 +0000 Subject: [PATCH] Added the corporate name to the user's top-right profile link --- src/components/Navbar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 6f6f5edf..e6ac2460 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -72,7 +72,8 @@ export default function Navbar({user, path, navDisabled = false, focusMode = fal {user.name} - {user.name} | {USER_TYPE_LABELS[user.type]} + {user.type === "corporate" ? `${user.corporateInformation?.companyInformation.name} |` : ""} {user.name} |{" "} + {USER_TYPE_LABELS[user.type]}
setIsMenuOpen(true)}>