1import React, { useMemo, useState } from 'react';
3import useBreakpoints from 'lib/useBreakpoints';
5import Accordion from 'components/Accordion';
7import Ledger from './Ledger';
8import Trezor from './Trezor';
16 [NAMES.LEDGER]: Ledger,
17 [NAMES.TREZOR]: Trezor,
21 { text: 'Ledger', value: NAMES.LEDGER },
22 { text: 'Trezor', value: NAMES.TREZOR },
25export default function Hardware({ className, ...rest }) {
26 const [currentTab, setCurrentTab] = useState(undefined);
28 // using breakpoint to decide if we're on mobile or not
29 // see ActivateCode for more details on this approach
30 const hardwareAllowed = useBreakpoints([false, true, true]);
32 const options = useMemo(
34 OPTIONS.map(option => ({
36 disabled: !hardwareAllowed && ' not availble on mobile',
46 currentTab={currentTab}
47 onTabChange={setCurrentTab}
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