diff --git a/app/assets/stylesheets/themes/_theme-template.scss b/app/assets/stylesheets/themes/_theme-template.scss
index 59d5077833..146fd9e355 100644
--- a/app/assets/stylesheets/themes/_theme-template.scss
+++ b/app/assets/stylesheets/themes/_theme-template.scss
@@ -1356,8 +1356,8 @@ $account-background
}
.olDarkTheme .gate_fee .amount-selector {
- width: 74%;
- display: inline-block;
+ width: 100%;
+ display: inline-block;
}
.olDarkTheme .gate_fee .right-selector {
diff --git a/app/components/DepositWithdraw/WithdrawModal.jsx b/app/components/DepositWithdraw/WithdrawModal.jsx
index ea2857f1aa..050614a700 100644
--- a/app/components/DepositWithdraw/WithdrawModal.jsx
+++ b/app/components/DepositWithdraw/WithdrawModal.jsx
@@ -11,64 +11,63 @@ import AccountActions from "actions/AccountActions";
class WithdrawModal extends React.Component {
- static propTypes = {
- account: ChainTypes.ChainAccount.isRequired,
- issuer: ChainTypes.ChainAccount.isRequired,
- asset: ChainTypes.ChainAsset.isRequired,
- receive_asset_name: React.PropTypes.string,
- receive_asset_symbol: React.PropTypes.string,
- memo_prefix: React.PropTypes.string
- }
+ static propTypes = {
+ account: ChainTypes.ChainAccount.isRequired,
+ issuer: ChainTypes.ChainAccount.isRequired,
+ asset: ChainTypes.ChainAsset.isRequired,
+ receive_asset_name: React.PropTypes.string,
+ receive_asset_symbol: React.PropTypes.string,
+ memo_prefix: React.PropTypes.string
+ }
- constructor( props ) {
- super(props);
- this.state = {
- withdraw_amount:null,
- withdraw_address:null
- }
- }
+ constructor( props ) {
+ super(props);
+ this.state = {
+ withdraw_amount:null,
+ withdraw_address:null
+ };
+ }
- onWithdrawAmountChange( {amount, asset} ) {
- this.setState( {withdraw_amount:amount} );
- }
+ onWithdrawAmountChange( {amount, asset} ) {
+ this.setState( {withdraw_amount:amount} );
+ }
- onWithdrawAddressChanged( e ) {
- this.setState( {withdraw_address:e.target.value} );
- }
+ onWithdrawAddressChanged( e ) {
+ this.setState( {withdraw_address:e.target.value} );
+ }
- onSubmit() {
- let asset = this.props.asset;
- let precision = utils.get_asset_precision(asset.get("precision"));
- let amount = this.state.withdraw_amount.replace( /,/g, "" )
- console.log( "withdraw_amount: ", amount );
- AccountActions.transfer(
- this.props.account.get("id"),
- this.props.issuer.get("id"),
- parseInt(amount * precision, 10),
- asset.get("id"),
- (this.props.memo_prefix || "") + this.state.withdraw_address
- )
- }
+ onSubmit() {
+ let asset = this.props.asset;
+ let precision = utils.get_asset_precision(asset.get("precision"));
+ let amount = this.state.withdraw_amount.replace( /,/g, "" );
+ console.log( "withdraw_amount: ", amount );
+ AccountActions.transfer(
+ this.props.account.get("id"),
+ this.props.issuer.get("id"),
+ parseInt(amount * precision, 10),
+ asset.get("id"),
+ (this.props.memo_prefix || "") + this.state.withdraw_address
+ );
+ }
- render() {
- let balance = null;
- // console.log( "account: ", this.props.account.toJS() );
- let account_balances = this.props.account.get("balances").toJS();
- // console.log( "balances: ", account_balances );
- let asset_types = Object.keys(account_balances);
+ render() {
+ let balance = null;
+ // console.log( "account: ", this.props.account.toJS() );
+ let account_balances = this.props.account.get("balances").toJS();
+ // console.log( "balances: ", account_balances );
+ let asset_types = Object.keys(account_balances);
- if (asset_types.length > 0) {
- let current_asset_id = this.props.asset.get('id');
- if( current_asset_id )
- balance = (