mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 11:28:51 +01:00
31 lines
708 B
JavaScript
31 lines
708 B
JavaScript
|
import React from 'react';
|
||
|
import DesktopPairingPage from './desktop-pairing.component';
|
||
|
|
||
|
export default {
|
||
|
title: 'Pages/DesktopPairingPage',
|
||
|
component: DesktopPairingPage,
|
||
|
argTypes: {
|
||
|
showLoadingIndication: {
|
||
|
action: 'showLoadingIndication',
|
||
|
},
|
||
|
hideLoadingIndication: {
|
||
|
action: 'hideLoadingIndication',
|
||
|
},
|
||
|
generateDesktopOtp: {
|
||
|
action: 'generateDesktopOtp',
|
||
|
},
|
||
|
},
|
||
|
args: {
|
||
|
mostRecentOverviewPage: '/',
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export const DefaultStory = (args) => {
|
||
|
const generateDesktopOtp = async () => Promise.resolve('123456');
|
||
|
return (
|
||
|
<DesktopPairingPage {...args} generateDesktopOtp={generateDesktopOtp} />
|
||
|
);
|
||
|
};
|
||
|
|
||
|
DefaultStory.storyName = 'Default';
|