on master help sign in
login: clean up unused imports and variables
commita21a5c51b6356498713cfcab6eafd9f122395cae authorpkova <pyry.kovanen@gmail.com> dateMon 7 Jun 2021, 13:42 (5 years ago) parent26fdbb7
1 file changed+2−32
src/views/Login.js+2−32
src/views/Login.js+2−32
@@ -1,51 +1,21 @@
11import 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';
33
44import { version } from '../../package.json';
55
66import { useHistory } from 'store/history';
7−import { useWallet } from 'store/wallet';
8−import { usePointCursor } from 'store/pointCursor';
97
10−import { WALLET_TYPES } from 'lib/wallet';
118import { COMMANDS, useFlowCommand } from 'lib/flowCommand';
129
1310import View from 'components/View';
14−import Tabs from 'components/Tabs';
15−import Crumbs from 'components/Crumbs';
1611import Footer from 'components/Footer';
17−import { ForwardButton, OfflineButton } from 'components/Buttons';
1812
1913import Ticket from './Login/Ticket';
2014import Other from './Login/Other';
2115
22−const NAMES = {
23− TICKET: 'TICKET',
24− OTHER: 'OTHER',
25−};
26−
27−const VIEWS = {
28− [NAMES.TICKET]: Ticket,
29− [NAMES.OTHER]: Other,
30−};
31−
32−const OPTIONS = [
33− { text: 'Master Ticket', value: NAMES.TICKET },
34− { text: 'Other', value: NAMES.OTHER },
35−];
36−
37−const walletTypeToViewName = walletType => {
38− if (walletType === WALLET_TYPES.TICKET || !walletType) {
39− return NAMES.TICKET;
40− }
41− return NAMES.OTHER;
42−};
43−
4416export default function Login() {
4517 // globals
46− const { pop, push, names } = useHistory();
47− const { walletType } = useWallet();
48− const { setPointCursor } = usePointCursor();
18+ const { push, names } = useHistory();
4919 const flow = useFlowCommand();
5020
5121 // inputs