From 4592ee9af74f546136a106863cd1be04996b5710 Mon Sep 17 00:00:00 2001 From: Samuel Gendre Date: Wed, 11 Oct 2023 16:34:22 +0200 Subject: [PATCH] error form story --- packages/forms/stories/SchemaState.stories.tsx | 4 +++- .../stories/UIFormStoriesSchemas/errors.schema.js | 12 ++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/forms/stories/SchemaState.stories.tsx b/packages/forms/stories/SchemaState.stories.tsx index d8fe62fec2a..cfbc81dfd73 100644 --- a/packages/forms/stories/SchemaState.stories.tsx +++ b/packages/forms/stories/SchemaState.stories.tsx @@ -85,7 +85,9 @@ const errorsProps = errorsSchema.uiSchema.reduce( ...acc, [current.key.split('.').join(',')]: 'There is an error', }), - {}, + { + tabConfiguration: 'There is an error', + }, ); export const Errors: Story = { diff --git a/packages/forms/stories/UIFormStoriesSchemas/errors.schema.js b/packages/forms/stories/UIFormStoriesSchemas/errors.schema.js index 3e258f05dd2..4f0454aa8f9 100644 --- a/packages/forms/stories/UIFormStoriesSchemas/errors.schema.js +++ b/packages/forms/stories/UIFormStoriesSchemas/errors.schema.js @@ -4,6 +4,14 @@ export const errorsSchema = { title: 'Comment', required: ['fieldname'], properties: { + tabConfiguration: { + type: 'object', + properties: { + fieldname: { + type: 'string', + }, + }, + }, fieldname: { type: 'string', }, @@ -100,7 +108,7 @@ export const errorsSchema = { widget: 'tabs', items: [ { - key: 'tab-settings-tab-main', + key: 'tabConfiguration', title: 'Configuration', widget: 'fieldset', items: [ @@ -111,7 +119,7 @@ export const errorsSchema = { ], }, { - key: 'tab-info', + key: 'tabInfo', title: 'Info', widget: 'fieldset', items: [