aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/scaling_amount_input.tsx
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2019-01-02 23:01:40 +0800
committerfragosti <francesco.agosti93@gmail.com>2019-01-02 23:01:40 +0800
commit586a8ba8e7427eab2fdc974dab6483105b7cd5b6 (patch)
tree84f6a59cefefee950ca10356f3a79f42071c3451 /packages/instant/src/components/scaling_amount_input.tsx
parent1ddf1087dd327b2ef35165518ee91eb457b84174 (diff)
downloaddexon-0x-contracts-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar
dexon-0x-contracts-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.gz
dexon-0x-contracts-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.bz2
dexon-0x-contracts-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.lz
dexon-0x-contracts-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.xz
dexon-0x-contracts-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.zst
dexon-0x-contracts-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.zip
feat: use PureComponent instead of Component
Diffstat (limited to 'packages/instant/src/components/scaling_amount_input.tsx')
-rw-r--r--packages/instant/src/components/scaling_amount_input.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/components/scaling_amount_input.tsx b/packages/instant/src/components/scaling_amount_input.tsx
index 4feb0502d..7dc1fdc0c 100644
--- a/packages/instant/src/components/scaling_amount_input.tsx
+++ b/packages/instant/src/components/scaling_amount_input.tsx
@@ -26,7 +26,7 @@ interface ScalingAmountInputState {
}
const { stringToMaybeBigNumber, areMaybeBigNumbersEqual } = maybeBigNumberUtil;
-export class ScalingAmountInput extends React.Component<ScalingAmountInputProps, ScalingAmountInputState> {
+export class ScalingAmountInput extends React.PureComponent<ScalingAmountInputProps, ScalingAmountInputState> {
public static defaultProps = {
onAmountChange: util.boundNoop,
onFontSizeChange: util.boundNoop,