aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-24 07:28:08 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-24 07:28:08 +0800
commit751b87af962d5b1f9f65514c10de2f7cb0b13c34 (patch)
treef8183c5a76a16eef3b6b8688a8bade04b831aedc
parenta5edb0b421afaaa34290dc3ada73da6bca3c556a (diff)
downloaddexon-sol-tools-751b87af962d5b1f9f65514c10de2f7cb0b13c34.tar.gz
dexon-sol-tools-751b87af962d5b1f9f65514c10de2f7cb0b13c34.tar.zst
dexon-sol-tools-751b87af962d5b1f9f65514c10de2f7cb0b13c34.zip
fix: remove unused callback info
-rw-r--r--packages/instant/src/components/scaling_amount_input.tsx6
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 db3062b57..233e29cff 100644
--- a/packages/instant/src/components/scaling_amount_input.tsx
+++ b/packages/instant/src/components/scaling_amount_input.tsx
@@ -12,7 +12,7 @@ export interface ScalingAmountInputProps {
textLengthThreshold: number;
fontColor?: ColorOption;
value?: BigNumber;
- onChange: (value?: BigNumber, fontSize?: number) => void;
+ onChange: (value?: BigNumber) => void;
onFontSizeChange: (fontSizePx: number) => void;
}
@@ -36,7 +36,7 @@ export class ScalingAmountInput extends React.Component<ScalingAmountInputProps>
/>
);
}
- private readonly _handleChange = (event: React.ChangeEvent<HTMLInputElement>, fontSize?: number): void => {
+ private readonly _handleChange = (event: React.ChangeEvent<HTMLInputElement>): void => {
const value = event.target.value;
let bigNumberValue;
if (!_.isEmpty(value)) {
@@ -47,6 +47,6 @@ export class ScalingAmountInput extends React.Component<ScalingAmountInputProps>
return;
}
}
- this.props.onChange(bigNumberValue, fontSize);
+ this.props.onChange(bigNumberValue);
};
}