diff options
author | fragosti <francesco.agosti93@gmail.com> | 2019-01-02 23:01:40 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2019-01-02 23:01:40 +0800 |
commit | 586a8ba8e7427eab2fdc974dab6483105b7cd5b6 (patch) | |
tree | 84f6a59cefefee950ca10356f3a79f42071c3451 /packages/instant/src/components/scaling_input.tsx | |
parent | 1ddf1087dd327b2ef35165518ee91eb457b84174 (diff) | |
download | dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.gz dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.bz2 dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.lz dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.xz dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.zst dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.zip |
feat: use PureComponent instead of Component
Diffstat (limited to 'packages/instant/src/components/scaling_input.tsx')
-rw-r--r-- | packages/instant/src/components/scaling_input.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/components/scaling_input.tsx b/packages/instant/src/components/scaling_input.tsx index 00aea37da..c31de1fb5 100644 --- a/packages/instant/src/components/scaling_input.tsx +++ b/packages/instant/src/components/scaling_input.tsx @@ -51,7 +51,7 @@ const defaultScalingSettings: ScalingSettings = { additionalInputSpaceInCh: 0.4, }; -export class ScalingInput extends React.Component<ScalingInputProps> { +export class ScalingInput extends React.PureComponent<ScalingInputProps> { public static defaultProps = { onChange: util.boundNoop, onFontSizeChange: util.boundNoop, |