chore: update prettier tab width for consistency

This commit is contained in:
41666 2021-03-13 22:49:01 -05:00
parent a931f8c69c
commit 9b71a24e2d
247 changed files with 7224 additions and 7375 deletions

View file

@ -1,56 +1,56 @@
import * as React from 'react';
import {
guild,
guildData,
member,
roleCategory,
roleCategory2,
guild,
guildData,
member,
roleCategory,
roleCategory2,
} from '../../fixtures/storyData';
import { RolePicker, RolePickerProps } from './RolePicker';
const props: Partial<RolePickerProps> = {
guildData: guildData,
member: member,
guild: guild,
roles: [...roleCategory, ...roleCategory2],
editable: false,
guildData: guildData,
member: member,
guild: guild,
roles: [...roleCategory, ...roleCategory2],
editable: false,
};
const noMessageArgs: Partial<RolePickerProps> = {
...props,
guildData: {
...guildData,
message: '',
},
...props,
guildData: {
...guildData,
message: '',
},
};
const noCategoriesArgs: Partial<RolePickerProps> = {
...props,
guildData: {
...guildData,
categoriesList: [],
},
...props,
guildData: {
...guildData,
categoriesList: [],
},
};
const emptyArgs = {
...props,
guildData: {
...guildData,
categoriesList: [],
message: '',
},
...props,
guildData: {
...guildData,
categoriesList: [],
message: '',
},
};
export default {
title: 'Organisms/Role Picker',
args: props,
component: RolePicker,
title: 'Organisms/Role Picker',
args: props,
component: RolePicker,
};
export const Full = (args) => <RolePicker {...args} />;
export const EditableFull = (args) => <RolePicker {...args} />;
EditableFull.args = {
editable: true,
editable: true,
};
export const NoMessage = (args) => <RolePicker {...args} />;
NoMessage.args = noMessageArgs;