From e9e570db4f158119dc86141201b695f52b3a5ca2 Mon Sep 17 00:00:00 2001 From: fragosti Date: Thu, 17 May 2018 12:00:00 -0700 Subject: Center all the things --- .../ts/components/inputs/balance_bounded_input.tsx | 4 ++++ .../ts/components/inputs/eth_amount_input.tsx | 9 ++++++++- .../ts/components/inputs/token_amount_input.tsx | 22 ++++++++++++++++------ .../ts/components/wallet/wrap_ether_item.tsx | 22 ++++++++++++++++++---- 4 files changed, 46 insertions(+), 11 deletions(-) (limited to 'packages') diff --git a/packages/website/ts/components/inputs/balance_bounded_input.tsx b/packages/website/ts/components/inputs/balance_bounded_input.tsx index b90232e05..f91a99355 100644 --- a/packages/website/ts/components/inputs/balance_bounded_input.tsx +++ b/packages/website/ts/components/inputs/balance_bounded_input.tsx @@ -23,6 +23,8 @@ interface BalanceBoundedInputProps { isDisabled?: boolean; shouldShowErrs?: boolean; shouldShowUnderline?: boolean; + inputStyle?: React.CSSProperties; + inputHintStyle?: React.CSSProperties; } interface BalanceBoundedInputState { @@ -95,6 +97,8 @@ export class BalanceBoundedInput extends React.Component{this.props.hintText}} onChange={this._onValueChange.bind(this)} underlineStyle={{ width: 'calc(100% + 50px)' }} + inputStyle={this.props.inputStyle} + hintStyle={this.props.inputHintStyle} underlineShow={this.props.shouldShowUnderline} disabled={this.props.isDisabled} /> diff --git a/packages/website/ts/components/inputs/eth_amount_input.tsx b/packages/website/ts/components/inputs/eth_amount_input.tsx index 862ba25f8..fa684d85c 100644 --- a/packages/website/ts/components/inputs/eth_amount_input.tsx +++ b/packages/website/ts/components/inputs/eth_amount_input.tsx @@ -20,6 +20,8 @@ interface EthAmountInputProps { shouldShowErrs?: boolean; shouldShowUnderline?: boolean; style?: React.CSSProperties; + labelStyle?: React.CSSProperties; + inputHintStyle?: React.CSSProperties; } interface EthAmountInputState {} @@ -49,8 +51,10 @@ export class EthAmountInput extends React.Component -
ETH
+
ETH
); } @@ -60,4 +64,7 @@ export class EthAmountInput extends React.Component +
-
{this.props.token.symbol}
+
{this.props.token.symbol}
); } @@ -141,4 +141,14 @@ export class TokenAmountInput extends React.Component ) : ( @@ -108,7 +120,9 @@ export class WrapEtherItem extends React.Component )} -- cgit