Skip to content

Commit

Permalink
My Profile hyperlink
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed May 16, 2023
1 parent f4f6370 commit 197f675
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/users/UserOptions.jsx
Expand Up @@ -32,7 +32,6 @@ const UserOptions = () => {
const onHomeClick = event => {
event.persist();
handleClose(event);
window.location.hash = user.url
};
const username = get(user, 'username');
const displayName = get(user, 'name') || username;
Expand Down Expand Up @@ -90,7 +89,7 @@ const UserOptions = () => {
}
</div>
<ListItemText className='list-item-text-bold-primary' primary={displayName} secondary={user.email} />
<Chip className='manage-account-chip' label={<span style={{fontWeight: 'bold'}}>My Profile</span>} onClick={onHomeClick} />
<Chip className='manage-account-chip' label={<span style={{fontWeight: 'bold'}}>My Profile</span>} onClick={onHomeClick} href={'#' + user.url} component="a" />
</ListItemText>
</ListItem>
<Divider />
Expand Down

0 comments on commit 197f675

Please sign in to comment.