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/buy_button.tsx | |
parent | 1ddf1087dd327b2ef35165518ee91eb457b84174 (diff) | |
download | dexon-0x-contracts-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.gz dexon-0x-contracts-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.zst dexon-0x-contracts-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.zip |
feat: use PureComponent instead of Component
Diffstat (limited to 'packages/instant/src/components/buy_button.tsx')
-rw-r--r-- | packages/instant/src/components/buy_button.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/components/buy_button.tsx b/packages/instant/src/components/buy_button.tsx index 5c9c28ae4..551e857a5 100644 --- a/packages/instant/src/components/buy_button.tsx +++ b/packages/instant/src/components/buy_button.tsx @@ -32,7 +32,7 @@ export interface BuyButtonProps { onBuyFailure: (buyQuote: BuyQuote, txHash: string) => void; } -export class BuyButton extends React.Component<BuyButtonProps> { +export class BuyButton extends React.PureComponent<BuyButtonProps> { public static defaultProps = { onClick: util.boundNoop, onBuySuccess: util.boundNoop, |