mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 01:59:08 +00:00
chore: update prettier tab width for consistency (#175)
This commit is contained in:
parent
a931f8c69c
commit
f24d2fcc99
247 changed files with 7224 additions and 7375 deletions
|
@ -1,46 +1,46 @@
|
|||
import * as React from 'react';
|
||||
import {
|
||||
guild,
|
||||
guildData,
|
||||
guildEnum,
|
||||
mastheadSlugs,
|
||||
member,
|
||||
roleCategory,
|
||||
roleCategory2,
|
||||
user,
|
||||
guild,
|
||||
guildData,
|
||||
guildEnum,
|
||||
mastheadSlugs,
|
||||
member,
|
||||
roleCategory,
|
||||
roleCategory2,
|
||||
user,
|
||||
} from '../../fixtures/storyData';
|
||||
import { RolePickerTemplate, RolePickerTemplateProps } from './RolePicker';
|
||||
|
||||
const props: RolePickerTemplateProps = {
|
||||
guildData: {
|
||||
...guildData,
|
||||
message:
|
||||
'Hey, this is kind of a demo setup so features/use cases can be shown off.\n\nThanks for using Roleypoly <3',
|
||||
},
|
||||
member: member,
|
||||
guild: guild,
|
||||
guilds: mastheadSlugs,
|
||||
roles: [...roleCategory, ...roleCategory2],
|
||||
editable: false,
|
||||
user: user,
|
||||
guildEnumeration: guildEnum,
|
||||
activeGuildId: guild.id,
|
||||
onSubmit: () => {},
|
||||
guildData: {
|
||||
...guildData,
|
||||
message:
|
||||
'Hey, this is kind of a demo setup so features/use cases can be shown off.\n\nThanks for using Roleypoly <3',
|
||||
},
|
||||
member: member,
|
||||
guild: guild,
|
||||
guilds: mastheadSlugs,
|
||||
roles: [...roleCategory, ...roleCategory2],
|
||||
editable: false,
|
||||
user: user,
|
||||
guildEnumeration: guildEnum,
|
||||
activeGuildId: guild.id,
|
||||
onSubmit: () => {},
|
||||
};
|
||||
|
||||
export default {
|
||||
title: 'Templates/Role Picker',
|
||||
components: RolePickerTemplate,
|
||||
args: props,
|
||||
title: 'Templates/Role Picker',
|
||||
components: RolePickerTemplate,
|
||||
args: props,
|
||||
};
|
||||
|
||||
export const Default = (args) => {
|
||||
return <RolePickerTemplate {...args} />;
|
||||
return <RolePickerTemplate {...args} />;
|
||||
};
|
||||
|
||||
export const Editable = (args) => {
|
||||
return <RolePickerTemplate {...args} />;
|
||||
return <RolePickerTemplate {...args} />;
|
||||
};
|
||||
Editable.args = {
|
||||
editable: true,
|
||||
editable: true,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue