Refactor, cleaned up header file
This commit is contained in:
@@ -20,20 +20,11 @@ export default function Header() {
|
|||||||
const displayEmail = user?.email || "LDAP User";
|
const displayEmail = user?.email || "LDAP User";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex css={styles} justify="space-between" align="center" width="100%">
|
<Flex css={styles} >
|
||||||
{/*/!* Home Link Logo *!/*/}
|
|
||||||
{/*<Button as={NavLink} to="/home" color="color" variant="plain" textStyle="5xl" fontWeight="bold">*/}
|
|
||||||
{/* VDAP*/}
|
|
||||||
{/*</Button>*/}
|
|
||||||
<SearchBar placeholder="Enter a volcano to search" size="sm" width="410px" />
|
<SearchBar placeholder="Enter a volcano to search" size="sm" width="410px" />
|
||||||
|
|
||||||
{/* User Profile Section */}
|
{/* User Profile Section */}
|
||||||
<Flex align="center" gap={3} pr={6}>
|
<Flex align="center" gap={3} pr={6}>
|
||||||
<Text color="color" fontWeight="bold" textStyle="md" >{displayName}</Text>
|
<Text fontWeight="bold" textStyle="md" >{displayName}</Text>
|
||||||
{/*<Stack gap="0" textAlign="right" cursor="default">*/}
|
|
||||||
{/* <Text color="color" fontWeight="bold" textStyle="md" width="100%" >{displayName}</Text>*/}
|
|
||||||
{/* <Text color="fg.muted" textStyle="sm">{displayEmail}</Text>*/}
|
|
||||||
{/*</Stack>*/}
|
|
||||||
<UserAvatarMenu
|
<UserAvatarMenu
|
||||||
name={avatarname}
|
name={avatarname}
|
||||||
// avatar={user.avatar}
|
// avatar={user.avatar}
|
||||||
|
|||||||
Reference in New Issue
Block a user