mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
cb1890d928
Co-authored-by: Pieter Tolsma <pietertolsma@Pieters-MacBook-Air.local>
49 lines
924 B
JavaScript
49 lines
924 B
JavaScript
import React from 'react';
|
|
import CountdownTimer from './countdown-timer';
|
|
import README from './README.mdx';
|
|
|
|
export default {
|
|
title: 'Pages/Swaps/CountdownTimer',
|
|
id: __filename,
|
|
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',
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => {
|
|
return <CountdownTimer {...args} />;
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|