mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 17:49:09 +00:00
chore: sync from legacy redo
This commit is contained in:
parent
dde05c402e
commit
c4dda617b1
7 changed files with 67 additions and 2 deletions
|
@ -0,0 +1,13 @@
|
|||
import { presentableGuild, roleypolyGuild } from '../../fixtures/storyData';
|
||||
import { EditorSyncFromLegacy } from './EditorSyncFromLegacy';
|
||||
|
||||
export default {
|
||||
title: 'Organisms/Editor/Sync From Legacy',
|
||||
component: EditorSyncFromLegacy,
|
||||
args: {
|
||||
guild: presentableGuild,
|
||||
guildSlug: roleypolyGuild,
|
||||
},
|
||||
};
|
||||
|
||||
export const syncFromLegacy = (args) => <EditorSyncFromLegacy {...args} />;
|
|
@ -0,0 +1,2 @@
|
|||
import styled from 'styled-components';
|
||||
export const EditorSyncFromLegacyStyled = styled.div``;
|
|
@ -0,0 +1,25 @@
|
|||
import {
|
||||
EditorUtilityProps,
|
||||
EditorUtilityShell,
|
||||
} from '@roleypoly/design-system/molecules/editor-utility-shell';
|
||||
import { PresentableGuild } from '@roleypoly/types';
|
||||
import { GoShield } from 'react-icons/go';
|
||||
|
||||
export type EditorSyncFromLegacyProps = {
|
||||
guild: PresentableGuild;
|
||||
} & EditorUtilityProps;
|
||||
|
||||
export const EditorAccessControl = (props: EditorSyncFromLegacyProps) => {
|
||||
return (
|
||||
<EditorUtilityShell
|
||||
guildSlug={props.guild.guild}
|
||||
title="Access Control"
|
||||
icon={<GoShield />}
|
||||
hasChanges={false}
|
||||
onSubmit={props.onSubmit}
|
||||
onExit={props.onExit}
|
||||
>
|
||||
<div>hi</div>
|
||||
</EditorUtilityShell>
|
||||
);
|
||||
};
|
|
@ -0,0 +1 @@
|
|||
export * from './EditorSyncFromLegacy';
|
Loading…
Add table
Add a link
Reference in a new issue