1import React from 'react';
2import { hot } from 'react-hot-loader/root';
3import { Just, Nothing } from 'folktale/maybe';
4import { IndigoApp } from 'indigo-react';
6import Router from 'components/Router';
8import Provider from 'store/Provider';
10import { ROUTE_NAMES } from 'lib/routeNames';
11import { ROUTES } from 'lib/router';
12import { NETWORK_TYPES } from 'lib/network';
13import { walletFromMnemonic } from 'lib/wallet';
14import { isDevelopment } from 'lib/flags';
16import 'style/index.scss';
18const INITIAL_NETWORK_TYPE = isDevelopment
20 : NETWORK_TYPES.MAINNET;
22// NB(shrugs): modify these variables to change the default local state.
23const SHOULD_STUB_LOCAL = process.env.REACT_APP_STUB_LOCAL === 'true';
24const IS_STUBBED = isDevelopment && SHOULD_STUB_LOCAL;
25const INITIAL_ROUTES = IS_STUBBED
26 ? [{ key: ROUTE_NAMES.LANDING }, { key: ROUTE_NAMES.LOGIN }]
27 : [{ key: ROUTE_NAMES.LANDING }];
29const INITIAL_WALLET = IS_STUBBED
31 process.env.REACT_APP_DEV_MNEMONIC,
32 process.env.REACT_APP_HD_PATH
35const INITIAL_MNEMONIC = IS_STUBBED
36 ? Just(process.env.REACT_APP_DEV_MNEMONIC)
38const INITIAL_POINT_CURSOR = IS_STUBBED ? Just(65792) : Nothing();
45 initialRoutes={INITIAL_ROUTES}
46 initialNetworkType={INITIAL_NETWORK_TYPE}
47 initialWallet={INITIAL_WALLET}
48 initialMnemonic={INITIAL_MNEMONIC}
49 initialPointCursor={INITIAL_POINT_CURSOR}>
57export default process.env.NODE_ENV === 'development' ? hot(Bridge) : Bridge;
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