From 1fa589fc5fcf6434da08dd18b2a590f92957e070 Mon Sep 17 00:00:00 2001 From: mostafahanafi Date: Tue, 15 Oct 2024 02:49:30 +0300 Subject: [PATCH] fix: replace deprecated 'dropdown' with Select in tabs --- .../tabs/__stories__/BasicTabs.story.jsx | 32 +++++++++++++++-- .../tabs/__stories__/InlineContent.story.jsx | 36 +++++++++++++++++-- .../tabs/__stories__/TabsWithCount.story.jsx | 36 +++++++++++++++++-- 3 files changed, 95 insertions(+), 9 deletions(-) diff --git a/core/components/molecules/tabs/__stories__/BasicTabs.story.jsx b/core/components/molecules/tabs/__stories__/BasicTabs.story.jsx index d061bb98ed..ab8506b562 100644 --- a/core/components/molecules/tabs/__stories__/BasicTabs.story.jsx +++ b/core/components/molecules/tabs/__stories__/BasicTabs.story.jsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { action } from '@/utils/action'; -import { Tabs, Heading, Dropdown, Tab } from '@/index'; +import { Tabs, Heading, Select, Tab } from '@/index'; // CSF format story export const basicTabs = () => { @@ -42,7 +42,20 @@ export const basicTabs = () => { Data Gaps
- +
@@ -98,7 +111,20 @@ const customCode = `() => { Data Gaps
- +
diff --git a/core/components/molecules/tabs/__stories__/InlineContent.story.jsx b/core/components/molecules/tabs/__stories__/InlineContent.story.jsx index d34044fe24..34877e29b5 100644 --- a/core/components/molecules/tabs/__stories__/InlineContent.story.jsx +++ b/core/components/molecules/tabs/__stories__/InlineContent.story.jsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { action } from '@/utils/action'; -import { Tabs, Dropdown, Input, Tab } from '@/index'; +import { Tabs, Select, Input, Tab } from '@/index'; // CSF format story export const inlineContent = () => { @@ -38,7 +38,22 @@ export const inlineContent = () => {
- +
@@ -83,7 +98,22 @@ const customCode = `() => {
- +
diff --git a/core/components/molecules/tabs/__stories__/TabsWithCount.story.jsx b/core/components/molecules/tabs/__stories__/TabsWithCount.story.jsx index 2ede893f03..e0b1ccd220 100644 --- a/core/components/molecules/tabs/__stories__/TabsWithCount.story.jsx +++ b/core/components/molecules/tabs/__stories__/TabsWithCount.story.jsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { action } from '@/utils/action'; -import { Tabs, Heading, Dropdown, Button, Input, Tab } from '@/index'; +import { Tabs, Heading, Select, Button, Input, Tab } from '@/index'; // CSF format story export const tabsWithCount = () => { @@ -46,7 +46,22 @@ export const tabsWithCount = () => {
- +
@@ -99,7 +114,22 @@ const customCode = `() => {
- +