1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 14:15:06 +01:00
metamask-extension/ui/components/app/snaps/snap-privacy-warning/snap-privacy-warning.stories.js
David Drazic f788121c3b
[FLASK] Add Snaps privacy warning on snap install (#18835)
* 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
2023-05-31 14:43:39 +02:00

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 = {};