Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backButton added to Wallet setup process screens #1196

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/screens/auth/CreateWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import React, { useState, useEffect } from 'react';
import styled from 'styled-components';
import { useSelector, useDispatch } from 'react-redux';
import { createNewWallet } from '../../redux/wallet/actions';
import { CorneredContainer, PasswordInput } from '../../components/common';
import {
BackButton,
CorneredContainer,
PasswordInput,
} from '../../components/common';
import { Input, Button, Link, Loader, ErrorPopup } from '../../basicComponents';
import {
getCurrentWalletFile,
Expand Down Expand Up @@ -193,6 +197,7 @@ const CreateWallet = ({ history, location }: AuthRouterParams) => {
'With this step, your Wallet will be created. Set up a password you will be using to access it later. Remember, there will be no way to recover the lost password.'
}
>
<BackButton action={history.goBack} />
{
<>
<UpperPart>
Expand Down
3 changes: 2 additions & 1 deletion app/screens/auth/SwitchNetwork.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from 'react';
import styled from 'styled-components';
import { useDispatch, useSelector } from 'react-redux';
import { CorneredContainer } from '../../components/common';
import { BackButton, CorneredContainer } from '../../components/common';
import { Button, Link, DropDown, Loader } from '../../basicComponents';
import { eventsService } from '../../infra/eventsService';
import { AppThDispatch, RootState } from '../../types';
Expand Down Expand Up @@ -166,6 +166,7 @@ const SwitchNetwork = ({ history, location }: AuthRouterParams) => {
subHeader="Select a public Spacemesh network for your wallet."
tooltipMessage="Check explorer.spacemesh.io for the stats"
>
<BackButton action={history.goBack} />
<RowColumn>
<DropDown
data={getDropDownData()}
Expand Down
Loading