mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-12 20:57:12 +01:00
52b043c4f2
* Created 'HoldToRevealButton' component * Added new line within the .svg files * Lint fix * CSS fix according to BEM * Modified unit test
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'),
|
|
};
|