chore: update prettier tab width for consistency (#175)

This commit is contained in:
41666 2021-03-13 22:54:34 -05:00 committed by GitHub
parent a931f8c69c
commit f24d2fcc99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;