mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 11:59:11 +00:00
* try editor as preview * add databinding for editor actions and message * add actions, reordering base interactions * add drag and drop ordering for categoriers * category skeleton * fix linting issues * add role list and add button, non-functional * bump packages * add role search prototype * yarn.lock sync * fix lint * remove cfw-emulator bin
34 lines
878 B
TypeScript
34 lines
878 B
TypeScript
import * as React from 'react';
|
|
import { guild, mastheadSlugs, user } from '../../fixtures/storyData';
|
|
import { Authed } from './Authed';
|
|
import { Guest } from './Guest';
|
|
import { SecondaryEditing } from './Secondary';
|
|
import { Skeleton } from './Skeleton';
|
|
|
|
export default {
|
|
title: 'Organisms/Masthead',
|
|
};
|
|
|
|
export const hasGuilds = () => (
|
|
<Authed guilds={mastheadSlugs} activeGuildId={guild.id} user={user} recentGuilds={[]} />
|
|
);
|
|
|
|
export const withSecondary = () => (
|
|
<>
|
|
<Authed
|
|
guilds={mastheadSlugs}
|
|
activeGuildId={mastheadSlugs[0].id}
|
|
user={user}
|
|
recentGuilds={[]}
|
|
/>
|
|
<SecondaryEditing guild={mastheadSlugs[0]} showReset />
|
|
</>
|
|
);
|
|
|
|
export const noGuilds = () => (
|
|
<Authed guilds={[]} activeGuildId={null} user={user} recentGuilds={[]} />
|
|
);
|
|
|
|
export const guest = () => <Guest />;
|
|
|
|
export const skeleton = () => <Skeleton />;
|