diff --git a/app/components/ens/nameLookup.js b/app/components/ens/nameLookup.js index f1c2259..b1c6298 100644 --- a/app/components/ens/nameLookup.js +++ b/app/components/ens/nameLookup.js @@ -3,6 +3,7 @@ import web3 from 'web3'; import { connect } from 'react-redux'; import { actions as accountActions } from '../../reducers/accounts'; import Hidden from '@material-ui/core/Hidden'; +import Typography from '@material-ui/core/Typography'; import ENSSubdomainRegistry from 'Embark/contracts/ENSSubdomainRegistry'; import { Button, Field, TextInput, MobileSearch, Card, Info, Text } from '../../ui/components' import { IconCheck } from '../../ui/icons' @@ -72,6 +73,28 @@ class RenderAddresses extends PureComponent { } } +const RegisterInfoCard = ({ formattedDomain, domainPrice }) => ( + + + + {formattedDomain.toUpperCase()} can be registered for {!!domainPrice && formatPrice(fromWei(domainPrice))} SNT + + + + + + {formattedDomain.toUpperCase()} +
+ {!!domainPrice && formatPrice(fromWei(domainPrice))} SNT +
+
+
+
+
+) + class Register extends PureComponent { state = { domainPrice: null }; @@ -98,9 +121,7 @@ class Register extends PureComponent { {!registered ? - - {formattedDomain.toUpperCase()} can be registered for {!!domainPrice && formatPrice(fromWei(domainPrice))} SNT - + ( {validAddress(props.address) ? : - - {props.domainName.toUpperCase()} - } + + + {props.domainName.toUpperCase()} + + + }
props.setStatus(null)}>←
) @@ -137,7 +161,7 @@ const DisplayAddress = (props) => ( const LookupForm = ({ handleSubmit, values, handleChange }) => (
- + ( required /> - + ( wide /> - + @@ -180,7 +204,7 @@ const InnerForm = ({ setStatus }) => (
- + Ens Logo diff --git a/app/ui/components/Info.js b/app/ui/components/Info.js index 53e9ad2..fae1a47 100644 --- a/app/ui/components/Info.js +++ b/app/ui/components/Info.js @@ -22,7 +22,7 @@ Info.defaultProps = { const Main = styled.section` background: ${({ background }) => background}; padding: 15px; - border-radius: 3px; + border-radius: 4px; word-wrap: break-word; ` diff --git a/app/ui/components/MobileSearch.js b/app/ui/components/MobileSearch.js index 0bf48e1..becd52b 100644 --- a/app/ui/components/MobileSearch.js +++ b/app/ui/components/MobileSearch.js @@ -1,6 +1,6 @@ -import React from 'react' -import styled, { css } from 'styled-components' -import theme from '../theme' +import React from 'react'; +import styled, { css } from 'styled-components'; +import theme from '../theme'; import SearchIcon from '@material-ui/icons/Search'; const searchWrapper = {