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,16 @@
|
|||
import { presentableGuild } from '../../fixtures/storyData';
|
||||
import { EditableRoleList } from './EditableRoleList';
|
||||
|
||||
export default {
|
||||
title: 'Molecules/Editable Role List',
|
||||
component: EditableRoleList,
|
||||
args: {
|
||||
roles: presentableGuild.roles,
|
||||
selectedRoles: presentableGuild.data.categories[0].roles,
|
||||
unselectedRoles: presentableGuild.roles.filter(
|
||||
(r) => !presentableGuild.data.categories[0].roles.includes(r.id)
|
||||
),
|
||||
},
|
||||
};
|
||||
|
||||
export const editableRoleList = (args) => <EditableRoleList {...args} />;
|
Loading…
Add table
Add a link
Reference in a new issue