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

29 lines
643 B

import React from 'react';
import { action } from '@storybook/addon-actions';
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}`)()
}
useLedgerLive
/>
);
};
export const BrowserNotSupported = () => {
return (
<SelectHardware
browserSupported={false}
connectToHardwareWallet={() => undefined}
useLedgerLive
/>
);
};