n8n/packages/design-system/src/components/N8nUserInfo/UserInfo.stories.js
कारतोफ्फेलस्क्रिप्ट™ 13659d036f
ci: Ensure that eslint runs on all frontend code (no-changelog) (#4602)
* ensure that eslint runs on all frontend code

* remove tslint from `design-system`

* enable prettier and eslint-prettier for `design-system`

* Delete tslint.json

* use a single editorconfig for the repo

* enable prettier for all code in `design-system`

* more linting fixes on design-system

* ignore coverage for git and prettier

* lintfix on editor-ui
2022-11-15 18:20:54 +01:00

39 lines
731 B
JavaScript

import N8nUserInfo from './UserInfo.vue';
export default {
title: 'Modules/UserInfo',
component: N8nUserInfo,
parameters: {
backgrounds: { default: '--color-background-light' },
},
};
const Template = (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,
};