Send: cleanup (#34)

* Send: cleanup

* Send: add. localization
This commit is contained in:
Daniel Ternyak 2017-07-05 19:36:11 -05:00 committed by GitHub
parent 7c6483b121
commit 46ec6fe235
2 changed files with 9 additions and 9 deletions

View File

@ -6,6 +6,7 @@ import { connect } from 'react-redux';
import type { State } from 'reducers'; import type { State } from 'reducers';
import { isValidENSorEtherAddress, isValidENSAddress } from 'libs/validators'; import { isValidENSorEtherAddress, isValidENSAddress } from 'libs/validators';
import { resolveEnsName } from 'actions/ens'; import { resolveEnsName } from 'actions/ens';
import translate from 'translations';
type PublicProps = { type PublicProps = {
placeholder: string, placeholder: string,
@ -25,7 +26,7 @@ export class AddressField extends React.Component {
return ( return (
<div className="row form-group"> <div className="row form-group">
<div className="col-xs-11"> <div className="col-xs-11">
<label translate="SEND_addr"> To Address: </label> <label>{translate('SEND_addr')}:</label>
<input <input
className={`form-control ${isValidENSorEtherAddress(value) className={`form-control ${isValidENSorEtherAddress(value)
? 'is-valid' ? 'is-valid'

View File

@ -97,7 +97,7 @@ export class SendTransaction extends React.Component {
return ( return (
<section className="container" style={{ minHeight: '50%' }}> <section className="container" style={{ minHeight: '50%' }}>
<div className="tab-content"> <div className="tab-content">
<main className="tab-pane active" ng-controller="sendTxCtrl"> <main className="tab-pane active">
{hasQueryString && {hasQueryString &&
<div className="alert alert-info"> <div className="alert alert-info">
<p> <p>
@ -169,16 +169,16 @@ export class SendTransaction extends React.Component {
</div> </div>
</div> </div>
<div className="row form-group" ng-show="showRaw"> <div className="row form-group">
<div className="col-sm-6"> <div className="col-sm-6">
<label translate="SEND_raw"> Raw Transaction </label> <label> {translate('SEND_raw')} </label>
<textarea className="form-control" rows="4" readOnly> <textarea className="form-control" rows="4" readOnly>
{'' /*rawTx*/} {'' /*rawTx*/}
</textarea> </textarea>
</div> </div>
<div className="col-sm-6"> <div className="col-sm-6">
<label translate="SEND_signed"> <label>
{' '}Signed Transaction{' '} {translate('SEND_signed')}
</label> </label>
<textarea className="form-control" rows="4" readOnly> <textarea className="form-control" rows="4" readOnly>
{'' /*signedTx*/} {'' /*signedTx*/}
@ -186,14 +186,13 @@ export class SendTransaction extends React.Component {
</div> </div>
</div> </div>
<div className="form-group" ng-show="showRaw"> <div className="form-group">
<a <a
className="btn btn-primary btn-block col-sm-11" className="btn btn-primary btn-block col-sm-11"
data-toggle="modal" data-toggle="modal"
data-target="#sendTransaction" data-target="#sendTransaction"
translate="SEND_trans"
> >
{' '}Send Transaction{' '} {translate('SEND_trans')}
</a> </a>
</div> </div>
</section> </section>