1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/components/app/detected-token/detected-token-ignored-popover/detected-token-ignored-popover.stories.js
jainex 3d9457e517
Replacing deprecated Popover with Modal (#20413)
* Replacing deprecated Popover with Modal

* Replacing deprecated Popover with Modal in detected-token-ignored-popover

* Remove unused code

* fix hover problem

* update footerButton size to large

* Lint fix

* UI updates and removing unused CSS

* reset chnages in edit-gas-popover.component.js

---------

Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-08-18 09:54:50 -07:00

40 lines
868 B
JavaScript

import React from 'react';
import DetectedTokenIgnoredPopover from './detected-token-ignored-popover';
export default {
title: 'Components/App/DetectedToken/DetectedTokenIgnoredPopover',
argTypes: {
onCancelIgnore: {
action: 'onCancelIgnore',
},
handleClearTokensSelection: {
action: 'handleClearTokensSelection',
},
partiallyIgnoreDetectedTokens: {
control: 'boolean',
},
isOpen: {
control: 'boolean',
},
},
args: {
partiallyIgnoreDetectedTokens: false,
isOpen: true,
},
};
const Template = (args) => {
return <DetectedTokenIgnoredPopover {...args} />;
};
export const DefaultStory = Template.bind({});
DefaultStory.storyName = 'Default';
export const PartiallyIgnoreDetectedTokens = Template.bind({});
PartiallyIgnoreDetectedTokens.args = {
partiallyIgnoreDetectedTokens: true,
};