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.
29 lines
643 B
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
|
|
/>
|
|
);
|
|
};
|
|
|