A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/ui/pages/create-account/connect-hardware/select-hardware.stories.js

30 lines
803 B

import React from 'react';
import { action } from '@storybook/addon-actions';
import { LEDGER_TRANSPORT_TYPES } from '../../../../shared/constants/hardware-wallets';
import SelectHardware from './select-hardware';
export default {
title: 'Connect Hardware Wallet',
id: __filename,
};
export const SelectHardwareComponent = () => {
return (
<SelectHardware
browserSupported
connectToHardwareWallet={(selectedDevice) =>
action(`Continue connect to ${selectedDevice}`)()
}
ledgerTransportType={LEDGER_TRANSPORT_TYPES.LIVE}
/>
);
};
export const BrowserNotSupported = () => {
return (
<SelectHardware
browserSupported={false}
connectToHardwareWallet={() => undefined}
ledgerTransportType={LEDGER_TRANSPORT_TYPES.LIVE}
/>
);
};