Skip to content

Commit

Permalink
fix(ui) Make profile icon clickable to expand header menu (#5317)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscollins3456 authored Jul 1, 2022
1 parent 4c94a7c commit cb54629
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions datahub-web-react/src/app/shared/ManageAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ const DownArrow = styled(CaretDownOutlined)`
color: ${ANTD_GRAY[7]};
`;

const DropdownWrapper = styled.div`
align-items: center;
cursor: pointer;
display: flex;
`;

interface Props {
urn: string;
pictureLink?: string;
Expand Down Expand Up @@ -102,12 +108,12 @@ export const ManageAccount = ({ urn: _urn, pictureLink: _pictureLink, name }: Pr
);

return (
<>
<CustomAvatar photoUrl={_pictureLink} style={{ marginRight: 4 }} name={name} />
<Dropdown overlay={menu} trigger={['click']}>
<Dropdown overlay={menu} trigger={['click']}>
<DropdownWrapper>
<CustomAvatar photoUrl={_pictureLink} style={{ marginRight: 4 }} name={name} />
<DownArrow />
</Dropdown>
</>
</DropdownWrapper>
</Dropdown>
);
};

Expand Down

0 comments on commit cb54629

Please sign in to comment.