add edit button when user isOwner

This commit is contained in:
Barry Gitarts 2018-08-16 15:14:43 -04:00
parent 40afc62b7b
commit 01b9b33f79
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import { actions as accountActions, getDefaultAccount } from '../../reducers/acc
import Hidden from '@material-ui/core/Hidden';
import Typography from '@material-ui/core/Typography';
import ENSSubdomainRegistry from 'Embark/contracts/ENSSubdomainRegistry';
import { Button, Field, TextInput, MobileSearch, Card, Info, Text } from '../../ui/components'
import { Button, Field, TextInput, MobileSearch, MobileButton, Card, Info, Text } from '../../ui/components'
import { IconCheck } from '../../ui/icons'
import { keyFromXY } from '../../utils/ecdsa';
import theme from '../../ui/theme'
@ -108,6 +108,7 @@ class RenderAddresses extends PureComponent {
</Hidden>
<Hidden mdUp>
<MobileAddressDisplay {...this.props} isOwner={isOwner} />
{isOwner && <MobileButton type="submit" text="Edit" style={{ marginLeft: '35%' }} />}
</Hidden>
</Fragment>
)