1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/components/multichain/multichain-connected-site-menu/multichain-connected-site-menu.stories.js

52 lines
1.2 KiB
JavaScript
Raw Normal View History

import React from 'react';
import {
STATUS_CONNECTED,
STATUS_CONNECTED_TO_ANOTHER_ACCOUNT,
STATUS_NOT_CONNECTED,
} from '../../../helpers/constants/connected-sites';
import {
BackgroundColor,
Color,
} from '../../../helpers/constants/design-system';
import { MultichainConnectedSiteMenu } from './multichain-connected-site-menu';
export default {
title: 'Components/Multichain/MultichainConnectedSiteMenu',
component: MultichainConnectedSiteMenu,
argTypes: {
globalMenuColor: {
control: 'text',
},
text: {
control: 'text',
},
status: {
control: 'text',
},
},
args: {
globalMenuColor: Color.iconAlternative,
status: STATUS_NOT_CONNECTED,
},
};
const Template = (args) => {
return <MultichainConnectedSiteMenu {...args} />;
};
export const DefaultStory = Template.bind({});
export const ConnectedStory = Template.bind({});
ConnectedStory.args = {
globalMenuColor: Color.successDefault,
text: 'connected',
status: STATUS_CONNECTED,
};
export const ConnectedtoAnotherAccountStory = Template.bind({});
ConnectedtoAnotherAccountStory.args = {
globalMenuColor: BackgroundColor.backgroundDefault,
text: 'not connected',
status: STATUS_CONNECTED_TO_ANOTHER_ACCOUNT,
};