@@ -1,6 +1,5 @@
1−import React, { useCallback, useState, useMemo } from 'react';
1+import React, { useCallback, useState } from 'react';
22import { H4, Grid } from 'indigo-react';
3−import { filter } from 'lodash';
43
54import { useHistory } from 'store/history';
65import { useWallet } from 'store/wallet';
@@ -17,7 +16,6 @@ import Ticket from './Login/Ticket';
1716import Mnemonic from './Login/Mnemonic';
1817import Advanced from './Login/Advanced';
1918import Hardware from './Login/Hardware';
20−import useBreakpoints from 'lib/useBreakpoints';
2119
2220const NAMES = {
2321 TICKET: 'TICKET',
@@ -63,20 +61,6 @@ export default function Login() {
6361 const { pop, push, names } = useHistory();
6462 const { walletType } = useWallet();
6563
66− // again, using breakpoint to decide if we're on mobile or not
67− // see ActivateCode for more details
68− const hardwareAllowed = useBreakpoints([false, true, true]);
69−
70− // filter out hardware if mobile
71− const options = useMemo(
72− () =>
73− filter(
74− OPTIONS,
75− ({ value }) => hardwareAllowed || value !== NAMES.HARDWARE
76− ),
77− [hardwareAllowed]
78− );
79−
8064 // inputs
8165 const [currentTab, setCurrentTab] = useState(
8266 walletTypeToViewName(walletType)
@@ -105,7 +89,7 @@ export default function Login() {
10589 className="mt1"
10690 // Tabs
10791 views={VIEWS}
108− options={options}
92+ options={OPTIONS}
10993 currentTab={currentTab}
11094 onTabChange={setCurrentTab}
11195 // Tab extra