Skip to content

Commit

Permalink
Test case for combining combined fields
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 22, 2024
1 parent 81d2ee8 commit 8cdacc5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ export const themeFields: Field< Theme >[] = [
},
{ id: 'requires', label: 'Requires at least' },
{ id: 'tested', label: 'Tested up to' },
{ id: 'icon', label: 'Icon', render: () => <Icon icon={ image } /> },
{
id: 'tags',
label: 'Tags',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,17 @@ export const CombinedFields = () => {
layout: {
primaryField: 'name',
combinedFields: [
{
id: 'name_tested',
label: 'Theme', // This is not used, but is required for TS.
children: [ 'name', 'tested' ],
direction: 'vertical',
},
{
id: 'theme',
label: 'Theme',
children: [ 'name', 'description' ],
direction: 'vertical',
children: [ 'icon', 'name_tested' ],
direction: 'horizontal',
},
] as CombinedField[],
styles: {
Expand Down

0 comments on commit 8cdacc5

Please sign in to comment.