hide edit button once in edit page

This commit is contained in:
Barry Gitarts 2018-08-18 15:45:45 -04:00
parent 090758a00c
commit 54709bb7cb
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ class RenderAddresses extends PureComponent {
</Hidden>
<Hidden mdUp>
<MobileAddressDisplay {...this.props} isOwner={isOwner} edit={editAction === 'edit'} />
{isOwner && <MobileButton text="Edit" style={{ marginLeft: '35%' }} onClick={() => { this.setState({ editMenu: true }) } }/>}
{isOwner && editAction !== 'edit' && <MobileButton text="Edit" style={{ marginLeft: '35%' }} onClick={() => { this.setState({ editMenu: true }) } }/>}
<EditOptions open={editMenu} onClose={onClose} />
<ReleaseDomainAlert open={editAction === 'release'} handleClose={closeReleaseAlert} />
</Hidden>