mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
854fc71ae7
* Organizing storybook to echo app folder structure * Updating new stories to follow new convention from develop
34 lines
857 B
JavaScript
34 lines
857 B
JavaScript
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}
|
|
/>
|
|
);
|
|
};
|