Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 8f41969

Browse files
committed
Wire up Password view
1 parent 3e8b9c3 commit 8f41969

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

mobile/main.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import SetPasswordConfirmView from '../src/view/set-password-confirm-mobile';
88
import SeedSuccessView from '../src/view/seed-success';
99
import NewAddressView from '../src/view/new-address';
1010

11+
import PasswordView from '../src/view/password-mobile';
12+
import WaitView from '../src/view/wait-mobile';
1113
import HomeView from '../src/view/home';
1214
import SettingView from '../src/view/setting';
1315
import SettingUnitView from '../src/view/setting-unit';
@@ -45,7 +47,6 @@ const wallet = new WalletAction(store, grpc, db, nav, notify);
4547
const setting = new SettingAction(store, wallet, db, ipc);
4648
sinon.stub(wallet, 'update');
4749
sinon.stub(wallet, 'checkSeed');
48-
sinon.stub(wallet, 'checkPassword');
4950
sinon.stub(wallet, 'getExchangeRate');
5051
const transaction = new TransactionAction(store, grpc, nav, notify);
5152
sinon.stub(transaction, 'update');
@@ -78,6 +79,10 @@ const NewAddress = () => (
7879
/>
7980
);
8081

82+
const Password = () => <PasswordView store={store} wallet={wallet} />;
83+
84+
const Wait = () => <WaitView />;
85+
8186
const Home = () => (
8287
<HomeView
8388
store={store}
@@ -126,6 +131,8 @@ const SetupStack = createStackNavigator(
126131

127132
const MainStack = createStackNavigator(
128133
{
134+
Password,
135+
Wait,
129136
Home,
130137
Settings,
131138
SettingsUnit,

stories/screen-story.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ import SetPasswordMobile from '../src/view/set-password-mobile';
5050
import SetPasswordConfirm from '../src/view/set-password-confirm';
5151
import SetPasswordConfirmMobile from '../src/view/set-password-confirm-mobile';
5252
import Password from '../src/view/password';
53+
import PasswordMobile from '../src/view/password-mobile';
5354
import RestorePassword from '../src/view/restore-password';
5455
import ResetPasswordCurrent from '../src/view/reset-password-current';
5556
import ResetPasswordNew from '../src/view/reset-password-new';
@@ -115,6 +116,9 @@ storiesOf('Screens', module)
115116
<SetPasswordConfirmMobile store={store} wallet={wallet} />
116117
))
117118
.add('Password', () => <Password store={store} wallet={wallet} />)
119+
.add('Password (Mobile)', () => (
120+
<PasswordMobile store={store} wallet={wallet} />
121+
))
118122
.add('Restore Wallet: Password', () => (
119123
<RestorePassword store={store} wallet={wallet} nav={nav} />
120124
))

0 commit comments

Comments
 (0)