From e9093ef0b5f32d90cb7b2cbbe07aeca4e217e2e8 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Tue, 10 Jul 2018 18:09:19 -0400 Subject: [PATCH] add button to register page --- app/components/ens/registerSubDomain.js | 6 ++++-- app/ui/components/MobileButton.js | 22 ++++++++++++++++++++++ app/ui/components/index.js | 1 + 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 app/ui/components/MobileButton.js diff --git a/app/components/ens/registerSubDomain.js b/app/components/ens/registerSubDomain.js index a737822..a2a4c98 100644 --- a/app/components/ens/registerSubDomain.js +++ b/app/components/ens/registerSubDomain.js @@ -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 } from '../../ui/components'; +import { Button, MobileSearch, MobileButton } from '../../ui/components'; import { withFormik } from 'formik'; import { hash } from 'eth-ens-namehash'; import { zeroAddress, zeroBytes32, formatPrice } from './utils'; @@ -98,7 +98,6 @@ const InnerForm = ({ placeholder="Status Messenger Address" value={values.statusAddress} onChange={handleChange} - required wide /> setFieldValue('address', web3.eth.defaultAccount)} required wide /> +
+ +
); diff --git a/app/ui/components/MobileButton.js b/app/ui/components/MobileButton.js new file mode 100644 index 0000000..1083443 --- /dev/null +++ b/app/ui/components/MobileButton.js @@ -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 }) => ( + + + +); + +export default withStyles(styles)(MobileButton); diff --git a/app/ui/components/index.js b/app/ui/components/index.js index 63b9cde..779e841 100644 --- a/app/ui/components/index.js +++ b/app/ui/components/index.js @@ -6,5 +6,6 @@ export { default as Field } from './Field.js'; export { default as Text } from './Text.js'; export { default as TextInput } from './TextInput.js'; export { default as MobileSearch } from './MobileSearch.js'; +export { default as MobileButton } from './MobileButton.js'; export { default as Info } from './Info.js';