diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-10-27 07:24:16 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-10-27 07:24:16 +0800 |
commit | 0e55f76db860962e4ce06866cbfd3e058c0c2984 (patch) | |
tree | 5e60891addfead5fc3f7a310352bc0b5b2062a24 /packages/instant/src/components/scaling_amount_input.tsx | |
parent | 1880c34ce066a8e33047690ef9fb90393100abd9 (diff) | |
download | dexon-0x-contracts-0e55f76db860962e4ce06866cbfd3e058c0c2984.tar.gz dexon-0x-contracts-0e55f76db860962e4ce06866cbfd3e058c0c2984.tar.zst dexon-0x-contracts-0e55f76db860962e4ce06866cbfd3e058c0c2984.zip |
fix(instant): refactor some props to use isDisabled instead of disabled
Diffstat (limited to 'packages/instant/src/components/scaling_amount_input.tsx')
-rw-r--r-- | packages/instant/src/components/scaling_amount_input.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/components/scaling_amount_input.tsx b/packages/instant/src/components/scaling_amount_input.tsx index 8d51d27f9..cfbf3b7cc 100644 --- a/packages/instant/src/components/scaling_amount_input.tsx +++ b/packages/instant/src/components/scaling_amount_input.tsx @@ -8,7 +8,7 @@ import { util } from '../util/util'; import { ScalingInput } from './scaling_input'; export interface ScalingAmountInputProps { - disabled: boolean; + isDisabled: boolean; maxFontSizePx: number; textLengthThreshold: number; fontColor?: ColorOption; @@ -21,7 +21,7 @@ export class ScalingAmountInput extends React.Component<ScalingAmountInputProps> public static defaultProps = { onChange: util.boundNoop, onFontSizeChange: util.boundNoop, - disabled: false, + isDisabled: false, }; public render(): React.ReactNode { const { textLengthThreshold, fontColor, maxFontSizePx, value, onFontSizeChange } = this.props; @@ -35,7 +35,7 @@ export class ScalingAmountInput extends React.Component<ScalingAmountInputProps> value={!_.isUndefined(value) ? value.toDisplayString() : ''} placeholder="0.00" emptyInputWidthCh={3.5} - disabled={this.props.disabled} + isDisabled={this.props.isDisabled} /> ); } |