add button to register page
This commit is contained in:
parent
f0eb581fa1
commit
e9093ef0b5
|
@ -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 } from '../../ui/components';
|
import { Button, MobileSearch, MobileButton } 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';
|
||||||
|
@ -98,7 +98,6 @@ const InnerForm = ({
|
||||||
placeholder="Status Messenger Address"
|
placeholder="Status Messenger Address"
|
||||||
value={values.statusAddress}
|
value={values.statusAddress}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
required
|
|
||||||
wide />
|
wide />
|
||||||
<MobileSearch
|
<MobileSearch
|
||||||
name="address"
|
name="address"
|
||||||
|
@ -109,6 +108,9 @@ const InnerForm = ({
|
||||||
paste={() => setFieldValue('address', web3.eth.defaultAccount)}
|
paste={() => setFieldValue('address', web3.eth.defaultAccount)}
|
||||||
required
|
required
|
||||||
wide />
|
wide />
|
||||||
|
<div style={{ margin: '10% 0 0 20%' }}>
|
||||||
|
<MobileButton type="submit" text="Pay & register" />
|
||||||
|
</div>
|
||||||
</Hidden>
|
</Hidden>
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
import React, { Fragment } from 'react';
|
||||||
|
import classNames from 'classnames';
|
||||||
|
import { withStyles } from '@material-ui/core/styles';
|
||||||
|
import Button from '@material-ui/core/Button';
|
||||||
|
|
||||||
|
const styles = theme => ({
|
||||||
|
button: {
|
||||||
|
margin: theme.spacing.unit,
|
||||||
|
borderRadius: '4px',
|
||||||
|
backgroundColor: 'rgb(67, 96, 223, 0.1)',
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const buttonText = { color: '#4360df', margin: '0 20px', fontWeight: 300 };
|
||||||
|
const MobileButton = ({ classes, text, type }) => (
|
||||||
|
<Fragment>
|
||||||
|
<Button type={type} size="large" className={classNames(classes.button)} >
|
||||||
|
<div style={buttonText}>{text}</div>
|
||||||
|
</Button>
|
||||||
|
</Fragment>
|
||||||
|
);
|
||||||
|
|
||||||
|
export default withStyles(styles)(MobileButton);
|
|
@ -6,5 +6,6 @@ export { default as Field } from './Field.js';
|
||||||
export { default as Text } from './Text.js';
|
export { default as Text } from './Text.js';
|
||||||
export { default as TextInput } from './TextInput.js';
|
export { default as TextInput } from './TextInput.js';
|
||||||
export { default as MobileSearch } from './MobileSearch.js';
|
export { default as MobileSearch } from './MobileSearch.js';
|
||||||
|
export { default as MobileButton } from './MobileButton.js';
|
||||||
export { default as Info } from './Info.js';
|
export { default as Info } from './Info.js';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue