add field label to mobile search

This commit is contained in:
Barry Gitarts 2018-07-11 14:44:32 -04:00
parent 93f70a30b0
commit 0abd4844f4
2 changed files with 25 additions and 20 deletions

View File

@ -94,8 +94,8 @@ const RegisterInfoCard = ({ formattedDomain, domainPrice }) => (
</Info>
</Hidden>
<Hidden mdUp>
<Typography style={{ textAlign: 'center', padding: '1.5em', color: '#939ba1' }}>
Resolve this domain to your Status wallet address and contact code
<Typography style={{ textAlign: 'center', padding: '1.5em' }}>
This name will be pointed to the wallet address and contact code below
</Typography>
</Hidden>
</Fragment>

View File

@ -2,7 +2,7 @@ import web3 from "Embark/web3"
import ENSSubdomainRegistry from 'Embark/contracts/ENSSubdomainRegistry';
import React from 'react';
import Hidden from '@material-ui/core/Hidden';
import { Button, MobileSearch, MobileButton } from '../../ui/components';
import { Button, MobileSearch, MobileButton, Field } from '../../ui/components';
import { withFormik } from 'formik';
import { hash } from 'eth-ens-namehash';
import { zeroAddress, zeroBytes32, formatPrice } from './utils';
@ -92,13 +92,17 @@ const InnerForm = ({
{!isSubmitting ? <Button wide mode="strong" type="submit" disabled={isSubmitting || !!Object.keys(errors).length}>{!isSubmitting ? 'Submit' : 'Submitting to the Blockchain - (this may take awhile)'}</Button> : <LinearProgress />}
</Hidden>
<Hidden mdUp>
<Field label="Your Contact Code">
<MobileSearch
name="statusAddress"
style={{ marginTop: '10px' }}
placeholder="Status Messenger Address"
label="test"
value={values.statusAddress}
onChange={handleChange}
wide />
</Field>
<Field label="Your Wallet Address">
<MobileSearch
name="address"
style={{ marginTop: '10px' }}
@ -108,6 +112,7 @@ const InnerForm = ({
paste={() => setFieldValue('address', web3.eth.defaultAccount)}
required
wide />
</Field>
<div style={{ margin: '10% 0 0 20%' }}>
<MobileButton type="submit" text="Pay & register" />
</div>