mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
6a17d76efc
* added select-action-modal skeleton * added select action modal item * replaced stake link with constant * added route for open and close of modal * updated lint errors * lint fix * updated tests * revert unnecessary changes * fixed lint errors * added suggestions * lint fix * updated test * nit fix * updated select action item to use button * removed unused fragments * moved onClose command to bottom * moved select action modal on footer click * changed isDisabled to disabled * added hover and updated test * nit fix
36 lines
747 B
JavaScript
36 lines
747 B
JavaScript
import React from 'react';
|
|
import { IconName } from '../../component-library';
|
|
import { SelectActionModalItem } from '.';
|
|
|
|
export default {
|
|
title: 'Components/Multichain/SelectActionModalItem',
|
|
component: SelectActionModalItem,
|
|
argTypes: {
|
|
showIcon: {
|
|
control: 'boolean',
|
|
},
|
|
primaryText: {
|
|
control: 'text',
|
|
},
|
|
actionIcon: {
|
|
control: 'text',
|
|
},
|
|
secondaryText: {
|
|
control: 'text',
|
|
},
|
|
onClick: {
|
|
action: 'onClick',
|
|
},
|
|
},
|
|
args: {
|
|
showIcon: true,
|
|
primaryText: 'Buy',
|
|
secondaryText: 'Buy crypto with MetaMask',
|
|
actionIcon: IconName.Add,
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => <SelectActionModalItem {...args} />;
|
|
|
|
DefaultStory.storyName = 'Default';
|