mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 09:59:10 +00:00
feat(design-system): add editor skeletons
This commit is contained in:
parent
a37d481b18
commit
9e4bcfa79b
9 changed files with 53 additions and 30 deletions
|
@ -0,0 +1,12 @@
|
|||
import { BreakpointsProvider } from '@roleypoly/design-system/atoms/breakpoints';
|
||||
import { guildEnum } from '@roleypoly/design-system/fixtures/storyData';
|
||||
import * as React from 'react';
|
||||
import { EditorShell } from './EditorShell';
|
||||
|
||||
export default {
|
||||
title: 'Organisms/Editor',
|
||||
component: EditorShell,
|
||||
decorators: [(story) => <BreakpointsProvider>{story()}</BreakpointsProvider>],
|
||||
};
|
||||
|
||||
export const Shell = () => <EditorShell guild={guildEnum.guilds[0]} />;
|
|
@ -0,0 +1,15 @@
|
|||
import { Tab, TabView } from '@roleypoly/design-system/atoms/tab-view';
|
||||
import { EditorCategoriesTab } from '@roleypoly/design-system/organisms/editor-categories-tab';
|
||||
import { PresentableGuild } from '@roleypoly/types';
|
||||
|
||||
export type EditorShellProps = {
|
||||
guild: PresentableGuild;
|
||||
};
|
||||
|
||||
export const EditorShell = (props: EditorShellProps) => (
|
||||
<TabView initialTab={0}>
|
||||
<Tab title="Guild Details">{() => <div>hi2!</div>}</Tab>
|
||||
<Tab title="Categories & Roles">{() => <EditorCategoriesTab {...props} />}</Tab>
|
||||
<Tab title="Utilities">{() => <div>hi2!</div>}</Tab>
|
||||
</TabView>
|
||||
);
|
1
packages/design-system/organisms/editor-shell/index.ts
Normal file
1
packages/design-system/organisms/editor-shell/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export * from './EditorShell';
|
Loading…
Add table
Add a link
Reference in a new issue