1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 15:50:28 +01:00
metamask-extension/ui/pages/swaps/countdown-timer/countdown-timer.stories.js

49 lines
907 B
JavaScript
Raw Normal View History

import React from 'react';
import CountdownTimer from './countdown-timer';
import README from './README.mdx';
2020-10-06 20:28:38 +02:00
export default {
title: 'Pages/Swaps/CountdownTimer',
component: CountdownTimer,
parameters: {
docs: {
page: README,
},
},
argTypes: {
timeStarted: {
type: 'number',
},
timeOnly: {
type: 'boolean',
},
timerBase: {
type: 'number',
},
labelKey: {
type: 'string',
},
infoTooltipLabelKey: {
type: 'string',
},
warningTime: {
type: 'string',
},
},
args: {
timeStarted: Date.now(),
timeOnly: false,
timerBase: 20000,
labelKey: 'disconnectPrompt',
infoTooltipLabelKey: 'disconnectAllAccountsConfirmationDescription',
warningTime: '0:15',
},
};
2020-10-06 20:28:38 +02:00
export const DefaultStory = (args) => {
return <CountdownTimer {...args} />;
};
2020-10-06 20:28:38 +02:00
DefaultStory.storyName = 'Default';