mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
23 lines
512 B
JavaScript
23 lines
512 B
JavaScript
|
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'),
|
||
|
};
|