Make UnlockHeader a PureComponent
This commit is contained in:
parent
446cc96de1
commit
1fd8ef3933
|
@ -11,10 +11,12 @@ interface Props {
|
|||
wallet: IWallet;
|
||||
disabledWallets?: string[];
|
||||
}
|
||||
|
||||
interface State {
|
||||
isExpanded: boolean;
|
||||
}
|
||||
export class UnlockHeader extends React.Component<Props, State> {
|
||||
|
||||
export class UnlockHeader extends React.PureComponent<Props, State> {
|
||||
public state = {
|
||||
isExpanded: !this.props.wallet
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue