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/time_counter.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/time_counter.tsx')
-rw-r--r-- | packages/instant/src/components/time_counter.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/components/time_counter.tsx b/packages/instant/src/components/time_counter.tsx index f9b68163c..93dc497d5 100644 --- a/packages/instant/src/components/time_counter.tsx +++ b/packages/instant/src/components/time_counter.tsx @@ -16,7 +16,7 @@ interface TimeCounterState { elapsedSeconds: number; } -export class TimeCounter extends React.Component<TimeCounterProps, TimeCounterState> { +export class TimeCounter extends React.PureComponent<TimeCounterProps, TimeCounterState> { public state = { elapsedSeconds: 0, }; |