mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add select-hardware component to Storybook (#12227)
This commit is contained in:
parent
acce73c943
commit
b5103bf317
@ -0,0 +1,29 @@
|
||||
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
|
||||
/>
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue
Block a user