mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
35 lines
889 B
JavaScript
35 lines
889 B
JavaScript
import React from 'react';
|
|
import { action } from '@storybook/addon-actions';
|
|
import { LedgerTransportTypes } from '../../../../shared/constants/hardware-wallets';
|
|
import SelectHardware from './select-hardware';
|
|
|
|
export default {
|
|
title: 'Pages/CreateAccount/ConnectHardware/SelectHardware',
|
|
};
|
|
|
|
export const DefaultStory = () => {
|
|
return (
|
|
<SelectHardware
|
|
onCancel={() => null}
|
|
browserSupported
|
|
connectToHardwareWallet={(selectedDevice) =>
|
|
action(`Continue connect to ${selectedDevice}`)()
|
|
}
|
|
ledgerTransportType={LedgerTransportTypes.live}
|
|
/>
|
|
);
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
export const BrowserNotSupported = () => {
|
|
return (
|
|
<SelectHardware
|
|
onCancel={() => null}
|
|
browserSupported={false}
|
|
connectToHardwareWallet={() => undefined}
|
|
ledgerTransportType={LedgerTransportTypes.live}
|
|
/>
|
|
);
|
|
};
|