mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-05-07 01:02:36 +00:00
chore: restructure project into yarn workspaces, remove next
This commit is contained in:
parent
49e308507e
commit
8d06327c03
266 changed files with 16466 additions and 3350 deletions
|
@ -0,0 +1,15 @@
|
|||
import * as React from 'react';
|
||||
import { mastheadSlugs, user } from '../../fixtures/storyData';
|
||||
import { ServerSetupTemplate } from './ServerSetup';
|
||||
|
||||
export default {
|
||||
title: 'Templates/Server Setup',
|
||||
component: ServerSetupTemplate,
|
||||
args: {
|
||||
guilds: mastheadSlugs,
|
||||
user: user,
|
||||
guildSlug: mastheadSlugs[1],
|
||||
},
|
||||
};
|
||||
|
||||
export const serverSetup = (args) => <ServerSetupTemplate {...args} />;
|
|
@ -0,0 +1,18 @@
|
|||
import { AppShell, AppShellProps } from '@roleypoly/design-system/organisms/app-shell';
|
||||
import {
|
||||
ServerSetup,
|
||||
ServerSetupProps,
|
||||
} from '@roleypoly/design-system/organisms/server-setup/ServerSetup';
|
||||
|
||||
type ServerSetupTemplateProps = Omit<AppShellProps, 'children'> & ServerSetupProps;
|
||||
|
||||
export const ServerSetupTemplate = ({
|
||||
guildSlug,
|
||||
...appShellProps
|
||||
}: ServerSetupTemplateProps) => {
|
||||
return (
|
||||
<AppShell {...appShellProps} activeGuildId={guildSlug.id}>
|
||||
<ServerSetup guildSlug={guildSlug} />
|
||||
</AppShell>
|
||||
);
|
||||
};
|
1
packages/design-system/templates/server-setup/index.ts
Normal file
1
packages/design-system/templates/server-setup/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export * from './ServerSetup';
|
Loading…
Add table
Add a link
Reference in a new issue