mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-12 04:37:13 +01:00
1c011b66aa
This reverts commit 9d70c60c22
.
30 lines
643 B
JavaScript
30 lines
643 B
JavaScript
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
|
|
/>
|
|
);
|
|
};
|