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