From 5cd34a52084dddd91fbec12549202f0005fba18b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Su=C3=A1rez?= Date: Tue, 7 May 2024 12:32:09 +0100 Subject: [PATCH] add story jsdoc --- .../src/combobox-control/stories/index.story.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/components/src/combobox-control/stories/index.story.tsx b/packages/components/src/combobox-control/stories/index.story.tsx index e2d73b82f7da9a..e58f68277c916c 100644 --- a/packages/components/src/combobox-control/stories/index.story.tsx +++ b/packages/components/src/combobox-control/stories/index.story.tsx @@ -129,9 +129,10 @@ WithCustomRenderItem.args = { * for individual items in the option object. */ export const WithDisabledOptions = Template.bind( {} ); -const optionsWithDisabledOptions = countryOptions.map( ( option, index ) => { - return { ...option, disabled: index % 3 === 0 }; -} ); +const optionsWithDisabledOptions = countryOptions.map( ( option, index ) => ( { + ...option, + disabled: index % 3 === 0, // Disable options at index 0, 3, 6, etc. +} ) ); WithDisabledOptions.args = { allowReset: false,