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

Commit 657e506

Browse files
Wire up navigation for Seed (Mobile).
1 parent 1bb9b3c commit 657e506

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

mobile/main.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { createStackNavigator, NavigationActions } from 'react-navigation';
99
import FontLoader from './component/font-loader';
1010

1111
import SelectSeedView from '../src/view/select-seed';
12+
import SeedView from '../src/view/seed-mobile';
1213
import SetPinView from '../src/view/set-pin-mobile';
1314
import SetPinConfirmView from '../src/view/set-pin-confirm-mobile';
1415
import SeedSuccessView from '../src/view/seed-success';
@@ -81,6 +82,8 @@ const SelectSeed = () => (
8182
<SelectSeedView store={store} wallet={wallet} nav={nav} />
8283
);
8384

85+
const Seed = () => <SeedView store={store} auth={auth} />;
86+
8487
const SetPin = () => <SetPinView store={store} auth={auth} nav={nav} />;
8588

8689
const SetPinConfirm = () => (
@@ -138,6 +141,7 @@ const Pay = () => <PaymentView store={store} payment={payment} nav={nav} />;
138141
const MainStack = createStackNavigator(
139142
{
140143
SelectSeed,
144+
Seed,
141145
SetPin,
142146
SetPinConfirm,
143147
SeedSuccess,
@@ -205,6 +209,32 @@ store.channelBalanceSatoshis = 59876000;
205209
store.settings.exchangeRate.usd = 0.00016341;
206210
store.settings.exchangeRate.eur = 0.0001896;
207211
store.settings.exchangeRate.gbp = 0.00021405;
212+
store.seedMnemonic = [
213+
'empower',
214+
'neglect',
215+
'experience',
216+
'elevator',
217+
'entropy',
218+
'future',
219+
'trust',
220+
'swift',
221+
'pluck',
222+
'easy',
223+
'kite',
224+
'measure',
225+
'engage',
226+
'settle',
227+
'dog',
228+
'manager',
229+
'tool',
230+
'fan',
231+
'neglect',
232+
'conduct',
233+
'blouse',
234+
'stone',
235+
'quit',
236+
'cashew',
237+
];
208238
store.logs = [
209239
'[14:00:24.995] [info] Using lnd in path lnd',
210240
'Checking for update',

src/view/select-seed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const styles = createStyles(
4848
})
4949
);
5050

51-
const SelectSeedView = ({ store, wallet, nav }) => (
51+
const SelectSeedView = ({ store, wallet }) => (
5252
<Background color={color.blackDark}>
5353
<MainContent style={styles.content}>
5454
<CopyOnboardText style={styles.title}>Recovery phrase?</CopyOnboardText>
@@ -73,7 +73,7 @@ const SelectSeedView = ({ store, wallet, nav }) => (
7373
</MainContent>
7474
<GlasButton
7575
onPress={() =>
76-
store.wallet.restoring ? wallet.initRestoreWallet() : nav.goSeed()
76+
store.wallet.restoring ? wallet.initRestoreWallet() : wallet.initSeed()
7777
}
7878
>
7979
Next

0 commit comments

Comments
 (0)