mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
40 lines
787 B
TypeScript
40 lines
787 B
TypeScript
import type { StoryFn } from '@storybook/vue';
|
|
import N8nUserInfo from './UserInfo.vue';
|
|
|
|
export default {
|
|
title: 'Modules/UserInfo',
|
|
component: N8nUserInfo,
|
|
parameters: {
|
|
backgrounds: { default: '--color-background-light' },
|
|
},
|
|
};
|
|
|
|
const Template: StoryFn = (args, { argTypes }) => ({
|
|
props: Object.keys(argTypes),
|
|
components: {
|
|
N8nUserInfo,
|
|
},
|
|
template: '<n8n-user-info v-bind="$props" />',
|
|
});
|
|
|
|
export const Member = Template.bind({});
|
|
Member.args = {
|
|
firstName: 'Oscar',
|
|
lastName: 'Wilde',
|
|
email: 'test@n8n.io',
|
|
};
|
|
|
|
export const Current = Template.bind({});
|
|
Current.args = {
|
|
firstName: 'Ham',
|
|
lastName: 'Sam',
|
|
email: 'test@n8n.io',
|
|
isCurrentUser: true,
|
|
};
|
|
|
|
export const Invited = Template.bind({});
|
|
Invited.args = {
|
|
email: 'test@n8n.io',
|
|
isPendingUser: true,
|
|
};
|