Skip to content

Commit

Permalink
Add story about Edit:radio
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Aug 9, 2024
1 parent 5cb2991 commit 5d19c9b
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ const fields = [
{ value: 2, label: 'John' },
],
},
{
id: 'reviewer',
label: 'Reviewer',
type: 'text' as const,
Edit: 'radio' as const,
elements: [
{ value: 'fulano', label: 'Fulano' },
{ value: 'mengano', label: 'Mengano' },
{ value: 'zutano', label: 'Zutano' },
],
},
{
id: 'status',
label: 'Status',
Expand All @@ -73,12 +84,21 @@ export const Default = ( { type }: { type: 'panel' | 'regular' } ) => {
order: 2,
author: 1,
status: 'draft',
reviewer: 'fulano',
date: '2021-01-01T12:00:00',
birthdate: '1950-02-23T12:00:00',
} );

const form = {
fields: [ 'title', 'order', 'author', 'status', 'date', 'birthdate' ],
fields: [
'title',
'order',
'author',
'reviewer',
'status',
'date',
'birthdate',
],
};

return (
Expand Down

0 comments on commit 5d19c9b

Please sign in to comment.