1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/pages/desktop-pairing/desktop-pairing.stories.js

31 lines
708 B
JavaScript
Raw Normal View History

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';