mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 17:49:09 +00:00
feat: add access control
This commit is contained in:
parent
9c07ff0e54
commit
3f45153b66
47 changed files with 1084 additions and 164 deletions
|
@ -0,0 +1,21 @@
|
|||
import { AppShell, AppShellProps } from '@roleypoly/design-system/organisms/app-shell';
|
||||
import {
|
||||
EditorAccessControl,
|
||||
EditorAccessControlProps,
|
||||
} from '@roleypoly/design-system/organisms/editor-access-control';
|
||||
|
||||
export const EditorAccessControlTemplate = (
|
||||
props: EditorAccessControlProps & Omit<AppShellProps, 'children'>
|
||||
) => {
|
||||
const { guildSlug, guild, onSubmit, onExit, ...appShellProps } = props;
|
||||
return (
|
||||
<AppShell {...appShellProps} activeGuildId={guild.id} small>
|
||||
<EditorAccessControl
|
||||
guildSlug={guildSlug}
|
||||
guild={guild}
|
||||
onSubmit={onSubmit}
|
||||
onExit={onExit}
|
||||
/>
|
||||
</AppShell>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue