1import React from 'react';
2import { Just, Nothing } from 'folktale/maybe';
3import { IndigoApp } from 'indigo-react';
5import Router from 'components/Router';
7import Provider from 'store/Provider';
9import { ROUTE_NAMES } from 'lib/routeNames';
10import { ROUTES } from 'lib/router';
11import { NETWORK_TYPES } from 'lib/network';
12import { walletFromMnemonic } from 'lib/wallet';
13import { isDevelopment } from 'lib/flags';
15import 'style/index.scss';
17const INITIAL_NETWORK_TYPE = isDevelopment
19 : NETWORK_TYPES.MAINNET;
21// NB(shrugs): modify these variables to change the default local state.
22const SHOULD_STUB_LOCAL = process.env.REACT_APP_STUB_LOCAL === 'true';
23const IS_STUBBED = isDevelopment && SHOULD_STUB_LOCAL;
24const INITIAL_ROUTES = IS_STUBBED
25 ? [{ key: ROUTE_NAMES.LANDING }, { key: ROUTE_NAMES.ACTIVATE }]
26 : [{ key: ROUTE_NAMES.LANDING }];
28const INITIAL_WALLET = IS_STUBBED
30 process.env.REACT_APP_DEV_MNEMONIC,
31 process.env.REACT_APP_HD_PATH
34const INITIAL_MNEMONIC = IS_STUBBED
35 ? Just(process.env.REACT_APP_DEV_MNEMONIC)
37const INITIAL_POINT_CURSOR = IS_STUBBED ? Just(65792) : Nothing();
39export default function Bridge() {
44 initialRoutes={INITIAL_ROUTES}
45 initialNetworkType={INITIAL_NETWORK_TYPE}
46 initialWallet={INITIAL_WALLET}
47 initialMnemonic={INITIAL_MNEMONIC}
48 initialPointCursor={INITIAL_POINT_CURSOR}>
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list