rename function

pull/134/head
Szymon Lesisz 6 years ago
parent e4bb6d5d47
commit c1a1e89ff3

@ -51,13 +51,13 @@ class WalletType extends Component<Props> {
keyboardHandler(event: KeyboardEvent): void { keyboardHandler(event: KeyboardEvent): void {
if (event.keyCode === 13) { if (event.keyCode === 13) {
event.preventDefault(); event.preventDefault();
this.foo(false); this.changeType(false);
} }
} }
keyboardHandler: (event: KeyboardEvent) => void; keyboardHandler: (event: KeyboardEvent) => void;
foo(hidden: boolean) { changeType(hidden: boolean) {
const { modal } = this.props; const { modal } = this.props;
if (!modal.opened) return; if (!modal.opened) return;
this.props.modalActions.onWalletTypeRequest(modal.device, hidden); this.props.modalActions.onWalletTypeRequest(modal.device, hidden);
@ -82,14 +82,14 @@ class WalletType extends Component<Props> {
Standard Wallet Standard Wallet
</span> </span>
<P isSmaller>Continue to access your standard wallet.</P> <P isSmaller>Continue to access your standard wallet.</P>
<StyledButton onClick={() => this.foo(false)}>Go to your standard wallet</StyledButton> <StyledButton onClick={() => this.changeType(false)}>Go to your standard wallet</StyledButton>
<Icon size={20} color={colors.TEXT_SECONDARY} icon={icons.HELP} /> <Icon size={20} color={colors.TEXT_SECONDARY} icon={icons.HELP} />
<span> <span>
<WalletTypeIcon type="hidden" size={24} color={colors.TEXT_SECONDARY} /> <WalletTypeIcon type="hidden" size={24} color={colors.TEXT_SECONDARY} />
Hidden Wallet Hidden Wallet
</span> </span>
<P isSmaller>You will be asked to enter your passphrase to unlock your hidden wallet.</P> <P isSmaller>You will be asked to enter your passphrase to unlock your hidden wallet.</P>
<StyledButton isWhite onClick={() => this.foo(true)}>Go to your hidden wallet</StyledButton> <StyledButton isWhite onClick={() => this.changeType(true)}>Go to your hidden wallet</StyledButton>
</Row> </Row>
</Wrapper> </Wrapper>
); );

Loading…
Cancel
Save