Skip to content

Commit

Permalink
remove Edit profile button on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
andreymikhadyuk committed Oct 23, 2023
1 parent a8b6775 commit d4118d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,6 @@
}
}

.editProfileButton {
--btn-h: 1.5rem;
--btn-pl: 0.25rem;
--btn-pr: 0.25rem;

margin-top: 0.25rem;
font-weight: 500;
}

.userPhoto {
width: 6.25rem;
height: 6.25rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,23 +289,11 @@ const UserDetails: ForwardRefRenderFunction<
/>
</div>
{!isEditing && (
<>
<UserDetailsPreview
className={styles.userDetailsPreview}
user={user}
isMobileView={isMobileView}
/>
{isMobileView && (
<Button
className={styles.editProfileButton}
variant={ButtonVariant.LightPink}
size={ButtonSize.Xsmall}
onClick={onEdit}
>
Edit profile
</Button>
)}
</>
<UserDetailsPreview
className={styles.userDetailsPreview}
user={user}
isMobileView={isMobileView}
/>
)}
</div>
{!isEditing && user.intro && (
Expand Down

0 comments on commit d4118d2

Please sign in to comment.