mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-05-07 01:02:36 +00:00
feat: add skeleton masthead and generic loading page (#182)
* feat: add skeleton masthead and generic loading page * add generic loader to picker page * smooth out spinner, add no-motion state
This commit is contained in:
parent
fa85b30cf0
commit
e0fcfc310e
28 changed files with 380 additions and 30 deletions
|
@ -2,15 +2,20 @@ import * as React from 'react';
|
|||
import { guild, mastheadSlugs, user } from '../../fixtures/storyData';
|
||||
import { Authed } from './Authed';
|
||||
import { Guest } from './Guest';
|
||||
import { Skeleton } from './Skeleton';
|
||||
|
||||
export default {
|
||||
title: 'Organisms/Masthead',
|
||||
};
|
||||
|
||||
export const HasGuilds = () => (
|
||||
<Authed guilds={mastheadSlugs} activeGuildId={guild.id} user={user} />
|
||||
export const hasGuilds = () => (
|
||||
<Authed guilds={mastheadSlugs} activeGuildId={guild.id} user={user} recentGuilds={[]} />
|
||||
);
|
||||
|
||||
export const NoGuilds = () => <Authed guilds={[]} activeGuildId={null} user={user} />;
|
||||
export const noGuilds = () => (
|
||||
<Authed guilds={[]} activeGuildId={null} user={user} recentGuilds={[]} />
|
||||
);
|
||||
|
||||
export const Guest_ = () => <Guest />;
|
||||
export const guest = () => <Guest />;
|
||||
|
||||
export const skeleton = () => <Skeleton />;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue