diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-05-18 03:00:00 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-05-18 04:04:39 +0800 |
commit | e9e570db4f158119dc86141201b695f52b3a5ca2 (patch) | |
tree | def4514311e9a16b5ca96c58beba5028a13b8d2e /packages/website/ts/components/inputs/balance_bounded_input.tsx | |
parent | 5bc83fceaa3c281e45af0f30ace67643554830c8 (diff) | |
download | dexon-sol-tools-e9e570db4f158119dc86141201b695f52b3a5ca2.tar dexon-sol-tools-e9e570db4f158119dc86141201b695f52b3a5ca2.tar.gz dexon-sol-tools-e9e570db4f158119dc86141201b695f52b3a5ca2.tar.bz2 dexon-sol-tools-e9e570db4f158119dc86141201b695f52b3a5ca2.tar.lz dexon-sol-tools-e9e570db4f158119dc86141201b695f52b3a5ca2.tar.xz dexon-sol-tools-e9e570db4f158119dc86141201b695f52b3a5ca2.tar.zst dexon-sol-tools-e9e570db4f158119dc86141201b695f52b3a5ca2.zip |
Center all the things
Diffstat (limited to 'packages/website/ts/components/inputs/balance_bounded_input.tsx')
-rw-r--r-- | packages/website/ts/components/inputs/balance_bounded_input.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
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<BalanceBoundedInputProp hintText={<span style={{ textTransform: 'capitalize' }}>{this.props.hintText}</span>} 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} /> |