mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
3d9457e517
* 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>
40 lines
868 B
JavaScript
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,
|
|
};
|