From 12bd2ea38cdc1e9a202d279c24ef2ce65912e898 Mon Sep 17 00:00:00 2001 From: mostafahanafi Date: Mon, 14 Oct 2024 16:38:04 +0300 Subject: [PATCH] fix: replace deprecated 'dropdown' with menu and select in patterns --- .../patterns/forms/CreateUser.story.tsx | 39 ++- .../patterns/forms/InlineForm.story.tsx | 42 ++- .../patterns/forms/InlineLabelForm.story.tsx | 23 +- .../patterns/forms/StepperForm.story.tsx | 110 +++++-- .../patterns/forms/TimePeriodForm.story.tsx | 24 +- .../TableWithHeader/tableWithHeader.story.jsx | 276 ++++++++++++++++-- 6 files changed, 438 insertions(+), 76 deletions(-) diff --git a/core/components/patterns/forms/CreateUser.story.tsx b/core/components/patterns/forms/CreateUser.story.tsx index fb4bc7f509..3ff0da36cc 100644 --- a/core/components/patterns/forms/CreateUser.story.tsx +++ b/core/components/patterns/forms/CreateUser.story.tsx @@ -97,10 +97,21 @@ const customCode = ` - this.onChange(value, 'gender')} - /> + @@ -137,11 +148,21 @@ const customCode = ` - this.onChange(value, 'userType')} - /> + diff --git a/core/components/patterns/forms/InlineForm.story.tsx b/core/components/patterns/forms/InlineForm.story.tsx index 3a885096ce..41072e38f9 100644 --- a/core/components/patterns/forms/InlineForm.story.tsx +++ b/core/components/patterns/forms/InlineForm.story.tsx @@ -126,21 +126,39 @@ const customCode = `
- this.onChange(option, 'pcp')} - /> +
- this.onChange(option, 'region')} - /> +