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> </Info>
</Hidden> </Hidden>
<Hidden mdUp> <Hidden mdUp>
<Typography style={{ textAlign: 'center', padding: '1.5em', color: '#939ba1' }}> <Typography style={{ textAlign: 'center', padding: '1.5em' }}>
Resolve this domain to your Status wallet address and contact code This name will be pointed to the wallet address and contact code below
</Typography> </Typography>
</Hidden> </Hidden>
</Fragment> </Fragment>

View File

@ -2,7 +2,7 @@ import web3 from "Embark/web3"
import ENSSubdomainRegistry from 'Embark/contracts/ENSSubdomainRegistry'; import ENSSubdomainRegistry from 'Embark/contracts/ENSSubdomainRegistry';
import React from 'react'; import React from 'react';
import Hidden from '@material-ui/core/Hidden'; 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 { withFormik } from 'formik';
import { hash } from 'eth-ens-namehash'; import { hash } from 'eth-ens-namehash';
import { zeroAddress, zeroBytes32, formatPrice } from './utils'; 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 />} {!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>
<Hidden mdUp> <Hidden mdUp>
<Field label="Your Contact Code">
<MobileSearch <MobileSearch
name="statusAddress" name="statusAddress"
style={{ marginTop: '10px' }} style={{ marginTop: '10px' }}
placeholder="Status Messenger Address" placeholder="Status Messenger Address"
label="test"
value={values.statusAddress} value={values.statusAddress}
onChange={handleChange} onChange={handleChange}
wide /> wide />
</Field>
<Field label="Your Wallet Address">
<MobileSearch <MobileSearch
name="address" name="address"
style={{ marginTop: '10px' }} style={{ marginTop: '10px' }}
@ -108,6 +112,7 @@ const InnerForm = ({
paste={() => setFieldValue('address', web3.eth.defaultAccount)} paste={() => setFieldValue('address', web3.eth.defaultAccount)}
required required
wide /> wide />
</Field>
<div style={{ margin: '10% 0 0 20%' }}> <div style={{ margin: '10% 0 0 20%' }}>
<MobileButton type="submit" text="Pay & register" /> <MobileButton type="submit" text="Pay & register" />
</div> </div>