From f4ed8f7c4ba62a2360443b47dfe160c1118ba392 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Mon, 18 Jun 2018 13:33:34 -0400 Subject: [PATCH] add linear progress when registering --- app/components/ens/registerSubDomain.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/app/components/ens/registerSubDomain.js b/app/components/ens/registerSubDomain.js index 3b1df14..06c5623 100644 --- a/app/components/ens/registerSubDomain.js +++ b/app/components/ens/registerSubDomain.js @@ -6,6 +6,7 @@ import { withFormik } from 'formik'; import { hash } from 'eth-ens-namehash'; import { zeroAddress, zeroBytes32 } from './utils'; import FieldGroup from '../standard/FieldGroup'; +import LinearProgress from '@material-ui/core/LinearProgress'; const { soliditySha3 } = web3.utils; @@ -23,7 +24,8 @@ const InnerForm = ({ domainPrice, }) => (
- {!subDomain && } - {!domainName && { - ENSSubdomainRegistry.methods.getPrice(hash(values.domainName)) - .call() - .then((res) => { setFieldValue('price', res); }); + ENSSubdomainRegistry.methods.getPrice(hash(values.domainName)) + .call() + .then((res) => { setFieldValue('price', res); }); }} > Get Price } />} - {!domainPrice && setFieldValue('address', web3.eth.defaultAccount)}>Use My Primary Address} /> - + {!isSubmitting ? : } );