Commit 6a6696a3 authored by Alf Eaton's avatar Alf Eaton

Add AssignEditor to style guide

parent 5482cb25
Pipeline #2123 passed with stages
in 1 minute and 16 seconds
A drop-down menu for assigning an editor to a project.
```js
const project = {
id: faker.random.uuid(),
};
const team = {
members: []
};
const options = [
{
value: faker.random.uuid(),
label: faker.internet.userName(),
},
{
value: faker.random.uuid(),
label: faker.internet.userName(),
},
{
value: faker.random.uuid(),
label: faker.internet.userName(),
}
];
<AssignEditor
project={project}
team={team}
teamName="Senior Editor"
teamTypeName="seniorEditor"
options={options}
addUserToTeam={value => console.log(value)}
/>
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment