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

@ -3,11 +3,11 @@ import { mastheadSlugs } from '../../fixtures/storyData';
import { PreauthGreeting } from './PreauthGreeting';
export default {
title: 'Molecules/Preauth/Greeting',
component: PreauthGreeting,
args: {
guildSlug: mastheadSlugs[0],
},
title: 'Molecules/Preauth/Greeting',
component: PreauthGreeting,
args: {
guildSlug: mastheadSlugs[0],
},
};
export const Greeting = (args) => <PreauthGreeting {...args} />;

View file

@ -6,36 +6,30 @@ import * as React from 'react';
import styled from 'styled-components';
type GreetingProps = {
guildSlug: GuildSlug;
guildSlug: GuildSlug;
};
const Center = styled.div`
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
`;
export const PreauthGreeting = (props: GreetingProps) => (
<Center>
<Avatar
size={64}
src={avatarUtils.avatarHash(
props.guildSlug.id,
props.guildSlug.icon,
'icons',
512
)}
hash={props.guildSlug.icon}
>
{avatarUtils.initialsFromName(props.guildSlug.name)}
</Avatar>
<AccentTitle>
Hi there. <b>{props.guildSlug.name}</b> uses Roleypoly to help assign you
roles.
</AccentTitle>
<Space />
<Space />
</Center>
<Center>
<Avatar
size={64}
src={avatarUtils.avatarHash(props.guildSlug.id, props.guildSlug.icon, 'icons', 512)}
hash={props.guildSlug.icon}
>
{avatarUtils.initialsFromName(props.guildSlug.name)}
</Avatar>
<AccentTitle>
Hi there. <b>{props.guildSlug.name}</b> uses Roleypoly to help assign you roles.
</AccentTitle>
<Space />
<Space />
</Center>
);