@@ -1,51 +1,21 @@
1import React, { useCallback, useState } from 'react';
1import React, { useCallback, useState } from 'react';
2−import { P, H4, H5, Grid, Text, Button, Flex, LinkButton } from 'indigo-react';
2+import { Grid, Text, Button, Flex, LinkButton } from 'indigo-react';
4import { version } from '../../package.json';
4import { version } from '../../package.json';
6import { useHistory } from 'store/history';
6import { useHistory } from 'store/history';
7−import { useWallet } from 'store/wallet';
8−import { usePointCursor } from 'store/pointCursor';
10−import { WALLET_TYPES } from 'lib/wallet';
11import { COMMANDS, useFlowCommand } from 'lib/flowCommand';
8import { COMMANDS, useFlowCommand } from 'lib/flowCommand';
13import View from 'components/View';
10import View from 'components/View';
14−import Tabs from 'components/Tabs';
15−import Crumbs from 'components/Crumbs';
16import Footer from 'components/Footer';
11import Footer from 'components/Footer';
17−import { ForwardButton, OfflineButton } from 'components/Buttons';
19import Ticket from './Login/Ticket';
13import Ticket from './Login/Ticket';
20import Other from './Login/Other';
14import Other from './Login/Other';
28− [NAMES.TICKET]: Ticket,
29− [NAMES.OTHER]: Other,
33− { text: 'Master Ticket', value: NAMES.TICKET },
34− { text: 'Other', value: NAMES.OTHER },
37−const walletTypeToViewName = walletType => {
38− if (walletType === WALLET_TYPES.TICKET || !walletType) {
44export default function Login() {
16export default function Login() {
45 // globals
17 // globals
46− const { pop, push, names } = useHistory();
18+ const { push, names } = useHistory();
47− const { walletType } = useWallet();
48− const { setPointCursor } = usePointCursor();
49 const flow = useFlowCommand();
19 const flow = useFlowCommand();
@@ -63,11 +33,16 @@ export default function Login() {
63 switch (flow.kind) {
33 switch (flow.kind) {
64 case COMMANDS.TAKE_LOCKUP:
34 case COMMANDS.TAKE_LOCKUP:
65 push(names.ACCEPT_LOCKUP);
35 push(names.ACCEPT_LOCKUP);
67 case COMMANDS.BITCOIN:
38 case COMMANDS.BITCOIN:
68 push(names.BITCOIN_SIGN_TRANSACTION);
39 push(names.BITCOIN_SIGN_TRANSACTION);
43+ push(names.BITCOIN_XPUB);
72 throw new Error('unimplemented flow ' + flow.kind);
47 throw new Error('unimplemented flow ' + flow.kind);
@@ -83,6 +58,9 @@ export default function Login() {
83 case COMMANDS.BITCOIN:
58 case COMMANDS.BITCOIN:
84 return <>To sign a Bitcoin transaction, please sign in.</>;
59 return <>To sign a Bitcoin transaction, please sign in.</>;
62+ return <>To view your Bitcoin extended public key, please sign in</>;
87 return <>Flow: {command.kind}</>;
65 return <>Flow: {command.kind}</>;