mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 07:16:36 +01:00
f788121c3b
* Add Snaps privacy warning on snap install Add snap install warning status to storage Add storybook Add test for snap-privacy-warning Resolve button type issue Fix popup display logic Update fixture Update popup information and read more handling Replace deprecated button Update unit test * Update buttons and add cancel flow * Refactoring (review 1) * Add more unit tests
23 lines
430 B
JavaScript
23 lines
430 B
JavaScript
import React from 'react';
|
|
|
|
import SnapPrivacyWarning from '.';
|
|
|
|
export default {
|
|
title: 'Components/App/snaps/SnapPrivacyWarning',
|
|
component: SnapPrivacyWarning,
|
|
argTypes: {
|
|
onAccepted: {
|
|
action: 'onAccepted',
|
|
},
|
|
onCanceled: {
|
|
action: 'onCanceled',
|
|
},
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => <SnapPrivacyWarning {...args} />;
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
DefaultStory.args = {};
|