add editor wiring and styling updates

This commit is contained in:
41666 2021-07-05 12:04:46 -05:00
parent 1c38ab145c
commit 8cf3b2c78d
20 changed files with 434 additions and 53 deletions

View file

@ -0,0 +1,13 @@
import { guildEnum, mastheadSlugs, user } from '../../fixtures/storyData';
import { EditorTemplate } from './Editor';
export default {
title: 'Templates/Server Editor',
component: EditorTemplate,
args: {
guilds: mastheadSlugs,
user: user,
guild: guildEnum.guilds[0],
},
};
export const serverEditor = (args) => <EditorTemplate {...args} />;

View file

@ -0,0 +1,22 @@
import { AppShell, AppShellProps } from '@roleypoly/design-system/organisms/app-shell';
import {
EditorShell,
EditorShellProps,
} from '@roleypoly/design-system/organisms/editor-shell';
export const EditorTemplate = (
props: EditorShellProps & Omit<AppShellProps, 'children'>
) => {
const {
guild,
onCategoryChange,
onMessageChange,
onGuildChange,
...appShellProps
} = props;
return (
<AppShell {...appShellProps} activeGuildId={guild.id}>
<EditorShell guild={guild} onGuildChange={onGuildChange} />
</AppShell>
);
};

View file

@ -0,0 +1 @@
export * from './Editor';