sms verification: polish UI
This commit is contained in:
parent
8028c0fd65
commit
cde9f454eb
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
import React, { Component, PropTypes } from 'react';
|
import React, { Component, PropTypes } from 'react';
|
||||||
import { Checkbox } from 'material-ui';
|
import { Checkbox } from 'material-ui';
|
||||||
|
import InfoIcon from 'material-ui/svg-icons/action/info-outline';
|
||||||
import SuccessIcon from 'material-ui/svg-icons/navigation/check';
|
import SuccessIcon from 'material-ui/svg-icons/navigation/check';
|
||||||
import ErrorIcon from 'material-ui/svg-icons/navigation/close';
|
import ErrorIcon from 'material-ui/svg-icons/navigation/close';
|
||||||
|
|
||||||
@ -59,12 +60,12 @@ export default class GatherData extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
const { fee } = this.props.data;
|
|
||||||
const { numberIsValid } = this.state;
|
const { numberIsValid } = this.state;
|
||||||
|
|
||||||
|
// TODO: proper legal text
|
||||||
return (
|
return (
|
||||||
<Form>
|
<Form>
|
||||||
<p>{ fee ? `The fee is ${fromWei(fee).toFixed(3)} ETH.` : 'Fetching the fee…' }</p>
|
{ this.renderFee() }
|
||||||
{ this.renderCertified() }
|
{ this.renderCertified() }
|
||||||
{ this.renderRequested() }
|
{ this.renderRequested() }
|
||||||
<Input
|
<Input
|
||||||
@ -83,6 +84,20 @@ export default class GatherData extends Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
renderFee () {
|
||||||
|
const { fee } = this.props.data;
|
||||||
|
|
||||||
|
if (!fee) {
|
||||||
|
return (<p>Fetching the fee…</p>);
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<div className={ styles.container }>
|
||||||
|
<InfoIcon />
|
||||||
|
<p className={ styles.message }>The fee is { fromWei(fee).toFixed(3) } ETH.</p>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
renderCertified () {
|
renderCertified () {
|
||||||
const { isCertified } = this.props.data;
|
const { isCertified } = this.props.data;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user