diff --git a/src/components/Nav/Nav.tsx b/src/components/Nav/Nav.tsx
index 057f5a4..98a77f7 100644
--- a/src/components/Nav/Nav.tsx
+++ b/src/components/Nav/Nav.tsx
@@ -54,21 +54,31 @@ export const Nav = () => {
keycloak?.login({ redirectUri: `${JAMIE_UI_BASE_URL}${location.pathname}` });
};
+/* The `renderLoginButton` function is responsible for rendering the login button based on the
+authentication status of the user. */
const renderLoginButton = () => {
if (keycloak?.authenticated) {
return (
-
+
);
}
return (
-
+
);
};
+/* Return a element that represents the navigation bar component. */
return (
{
display: 'flex',
alignItems: 'center',
px: '2rem',
- minHeight: '5rem',
+ minHeight: '3rem',
+ backgroundColor: 'black',
}}
className="shadow"
>
-
+
-
+
Jamie
@@ -91,7 +102,6 @@ export const Nav = () => {
sx={{ display: 'flex', justifyContent: 'flex-end', flex: 1, alignItems: 'center' }}
className="space-x-4"
>
- {renderLanguageSwitcher()}
{renderLoginButton()}