Skip to content

Commit

Permalink
Merge pull request #2225 from daostack/feature/CW-2194-remove-edit-pr…
Browse files Browse the repository at this point in the history
…ofile-btn

Complete the profile page changes - Remove edit button from mobile #2194
  • Loading branch information
andreymikhadyuk authored Oct 23, 2023
2 parents a8b6775 + d4118d2 commit e162ab9
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 e162ab9

Please sign in to comment.