aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/scaling_input.tsx
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-10-27 07:24:16 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-10-27 07:24:16 +0800
commit0e55f76db860962e4ce06866cbfd3e058c0c2984 (patch)
tree5e60891addfead5fc3f7a310352bc0b5b2062a24 /packages/instant/src/components/scaling_input.tsx
parent1880c34ce066a8e33047690ef9fb90393100abd9 (diff)
downloaddexon-sol-tools-0e55f76db860962e4ce06866cbfd3e058c0c2984.tar
dexon-sol-tools-0e55f76db860962e4ce06866cbfd3e058c0c2984.tar.gz
dexon-sol-tools-0e55f76db860962e4ce06866cbfd3e058c0c2984.tar.bz2
dexon-sol-tools-0e55f76db860962e4ce06866cbfd3e058c0c2984.tar.lz
dexon-sol-tools-0e55f76db860962e4ce06866cbfd3e058c0c2984.tar.xz
dexon-sol-tools-0e55f76db860962e4ce06866cbfd3e058c0c2984.tar.zst
dexon-sol-tools-0e55f76db860962e4ce06866cbfd3e058c0c2984.zip
fix(instant): refactor some props to use isDisabled instead of disabled
Diffstat (limited to 'packages/instant/src/components/scaling_input.tsx')
-rw-r--r--packages/instant/src/components/scaling_input.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/instant/src/components/scaling_input.tsx b/packages/instant/src/components/scaling_input.tsx
index 593e55035..11748b729 100644
--- a/packages/instant/src/components/scaling_input.tsx
+++ b/packages/instant/src/components/scaling_input.tsx
@@ -27,7 +27,7 @@ export interface ScalingInputProps {
placeholder?: string;
maxLength?: number;
scalingSettings: ScalingSettings;
- disabled: boolean;
+ isDisabled: boolean;
}
export interface ScalingInputState {
@@ -50,7 +50,7 @@ export class ScalingInput extends React.Component<ScalingInputProps, ScalingInpu
onFontSizeChange: util.boundNoop,
maxLength: 7,
scalingSettings: defaultScalingSettings,
- disabled: false,
+ isDisabled: false,
};
public state: ScalingInputState = {
inputWidthPxAtPhaseChange: undefined,
@@ -123,7 +123,7 @@ export class ScalingInput extends React.Component<ScalingInputProps, ScalingInpu
}
}
public render(): React.ReactNode {
- const { disabled, fontColor, onChange, placeholder, value, maxLength } = this.props;
+ const { isDisabled, fontColor, onChange, placeholder, value, maxLength } = this.props;
const phase = ScalingInput.getPhaseFromProps(this.props);
return (
<Input
@@ -135,7 +135,7 @@ export class ScalingInput extends React.Component<ScalingInputProps, ScalingInpu
fontSize={`${this._calculateFontSize(phase)}px`}
width={this._calculateWidth(phase)}
maxLength={maxLength}
- disabled={disabled}
+ disabled={isDisabled}
/>
);
}