Make UnlockHeader a PureComponent

This commit is contained in:
Daniel Ternyak 2018-01-16 20:15:40 -06:00
parent 446cc96de1
commit 1fd8ef3933
No known key found for this signature in database
GPG Key ID: DF212D2DC5D0E245
1 changed files with 3 additions and 1 deletions

View File

@ -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
};