mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-15 17:19:10 +00:00
Feat/editor as preview (#294)
* 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
This commit is contained in:
parent
7d681d69d6
commit
ab3f718e6d
43 changed files with 1157 additions and 741 deletions
|
@ -1,8 +1,18 @@
|
|||
import ReactTooltip from 'react-tooltip';
|
||||
import { BreakpointsProvider } from '../../atoms/breakpoints';
|
||||
import { guildEnum, mastheadSlugs, user } from '../../fixtures/storyData';
|
||||
import { EditorTemplate } from './Editor';
|
||||
export default {
|
||||
title: 'Templates/Server Editor',
|
||||
component: EditorTemplate,
|
||||
decorators: [
|
||||
(story) => (
|
||||
<BreakpointsProvider>
|
||||
{story()}
|
||||
<ReactTooltip />
|
||||
</BreakpointsProvider>
|
||||
),
|
||||
],
|
||||
args: {
|
||||
guilds: mastheadSlugs,
|
||||
user: user,
|
||||
|
|
|
@ -10,7 +10,7 @@ export const EditorTemplate = (
|
|||
const { guild, onCategoryChange, onMessageChange, onGuildChange, ...appShellProps } =
|
||||
props;
|
||||
return (
|
||||
<AppShell {...appShellProps} activeGuildId={guild.id}>
|
||||
<AppShell {...appShellProps} activeGuildId={guild.id} small double>
|
||||
<EditorShell guild={guild} onGuildChange={onGuildChange} />
|
||||
</AppShell>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue