1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-30 08:09:15 +01:00
metamask-extension/ui/components/app/hold-to-reveal-button/hold-to-reveal-button.stories.js

23 lines
512 B
JavaScript
Raw Normal View History

import React from 'react';
import HoldToRevealButton from './hold-to-reveal-button';
export default {
title: 'Components/App/HoldToRevealButton',
id: __filename,
argTypes: {
buttonText: { control: 'text' },
onLongPressed: { action: 'Revealing the SRP' },
},
};
export const DefaultStory = (args) => {
return <HoldToRevealButton {...args} />;
};
DefaultStory.storyName = 'Default';
DefaultStory.args = {
buttonText: 'Hold to reveal SRP',
onLongPressed: () => console.log('Revealed'),
};