From 6a0fe7b05b15098078a8a8a1882ccfab386308b6 Mon Sep 17 00:00:00 2001 From: Christopher Hight Date: Fri, 5 Jun 2026 13:06:12 -0700 Subject: [PATCH] Update made minor adjustments to header. --- client/src/components/Header/Header.jsx | 60 +++++++++++++------------ 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/client/src/components/Header/Header.jsx b/client/src/components/Header/Header.jsx index 60fa076..819859c 100644 --- a/client/src/components/Header/Header.jsx +++ b/client/src/components/Header/Header.jsx @@ -1,36 +1,40 @@ import { useRecipe, Button, Stack, Text, Flex } from "@chakra-ui/react" import UserAvatarMenu from "./UserAvatarMenu.jsx"; -import { useNavigate } from "react-router-dom"; import { NavLink } from "react-router-dom"; -//TODO: Dynamically populate per each user -const user = { - name: "venessa kuchenik", - email: "vkuchenik@contractor.usgs.gov", - // avatar: "src\\assets\\user_profile.svg" +// Import the asset properly so Vite can bundle it for any server +// import defaultAvatar from "@/assets/user_profile.svg"; + +// TODO: Pull this dynamically from an Auth Context later! +const placeholderUser = { + name: "Princess Zelda", + email: "zelda.royal@hyrule.gov", + // avatar: defaultAvatar } -export default function Header() { - const navigate = useNavigate(); - const recipe = useRecipe({ key: "header" }); - const styles = recipe(); +// Accept a 'user' prop now, fallback to placeholder if empty +export default function Header({ user = placeholderUser }) { + const recipe = useRecipe({ key: "header" }); + const styles = recipe(); - return ( - - - - - {user.name} - {user.email} - - - - - ); -} + return ( + + {/* Home Link Logo */} + + {/* User Profile Section */} + + + {user.name} + {user.email} + + + + + ); +} \ No newline at end of file