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.
33 lines
857 B
33 lines
857 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: 'Pages/CreateAccount/ConnectHardware/SelectHardware',
|
|
id: __filename,
|
|
};
|
|
|
|
export const DefaultStory = () => {
|
|
return (
|
|
<SelectHardware
|
|
browserSupported
|
|
connectToHardwareWallet={(selectedDevice) =>
|
|
action(`Continue connect to ${selectedDevice}`)()
|
|
}
|
|
ledgerTransportType={LEDGER_TRANSPORT_TYPES.LIVE}
|
|
/>
|
|
);
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
export const BrowserNotSupported = () => {
|
|
return (
|
|
<SelectHardware
|
|
browserSupported={false}
|
|
connectToHardwareWallet={() => undefined}
|
|
ledgerTransportType={LEDGER_TRANSPORT_TYPES.LIVE}
|
|
/>
|
|
);
|
|
};
|
|
|