@@ -1,6 +1,5 @@
1−import React, { useCallback, useState, useMemo } from 'react';
1+import React, { useCallback, useState } from 'react';
2import { H4, Grid } from 'indigo-react';
2import { H4, Grid } from 'indigo-react';
3−import { filter } from 'lodash';
5import { useHistory } from 'store/history';
4import { useHistory } from 'store/history';
6import { useWallet } from 'store/wallet';
5import { useWallet } from 'store/wallet';
@@ -17,7 +16,6 @@ import Ticket from './Login/Ticket';
17import Mnemonic from './Login/Mnemonic';
16import Mnemonic from './Login/Mnemonic';
18import Advanced from './Login/Advanced';
17import Advanced from './Login/Advanced';
19import Hardware from './Login/Hardware';
18import Hardware from './Login/Hardware';
20−import useBreakpoints from 'lib/useBreakpoints';
22const NAMES = {
20const NAMES = {
23 TICKET: 'TICKET',
21 TICKET: 'TICKET',
@@ -63,20 +61,6 @@ export default function Login() {
63 const { pop, push, names } = useHistory();
61 const { pop, push, names } = useHistory();
64 const { walletType } = useWallet();
62 const { walletType } = useWallet();
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]);
70− // filter out hardware if mobile
71− const options = useMemo(
75− ({ value }) => hardwareAllowed || value !== NAMES.HARDWARE
81 const [currentTab, setCurrentTab] = useState(
65 const [currentTab, setCurrentTab] = useState(
82 walletTypeToViewName(walletType)
66 walletTypeToViewName(walletType)
@@ -105,7 +89,7 @@ export default function Login() {
105 className="mt1"
89 className="mt1"
107 views={VIEWS}
91 views={VIEWS}
108− options={options}
92+ options={OPTIONS}
109 currentTab={currentTab}
93 currentTab={currentTab}
110 onTabChange={setCurrentTab}
94 onTabChange={setCurrentTab}
111 // Tab extra
95 // Tab extra