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/erc20_token_selector.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/erc20_token_selector.tsx')
-rw-r--r-- | packages/instant/src/components/erc20_token_selector.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/components/erc20_token_selector.tsx b/packages/instant/src/components/erc20_token_selector.tsx index cb8a8c797..fc7c21d47 100644 --- a/packages/instant/src/components/erc20_token_selector.tsx +++ b/packages/instant/src/components/erc20_token_selector.tsx @@ -21,7 +21,7 @@ export interface ERC20TokenSelectorState { searchQuery: string; } -export class ERC20TokenSelector extends React.Component<ERC20TokenSelectorProps> { +export class ERC20TokenSelector extends React.PureComponent<ERC20TokenSelectorProps> { public state: ERC20TokenSelectorState = { searchQuery: '', }; @@ -76,7 +76,7 @@ interface TokenSelectorRowProps { onClick: (token: ERC20Asset) => void; } -class TokenSelectorRow extends React.Component<TokenSelectorRowProps> { +class TokenSelectorRow extends React.PureComponent<TokenSelectorRowProps> { public render(): React.ReactNode { const { token } = this.props; const circleColor = token.metaData.primaryColor || 'black'; |