{instrumentIcon}
diff --git a/libs/components/src/lib/tab/base/index.tsx b/libs/components/src/lib/tab/base/index.tsx
index 07fb1da0d..87bde6f1d 100644
--- a/libs/components/src/lib/tab/base/index.tsx
+++ b/libs/components/src/lib/tab/base/index.tsx
@@ -5,10 +5,14 @@ import {
cloneElement,
isValidElement,
} from 'react';
-import { Tab } from '@deriv/quill-design';
+import { Tab, qtJoin } from '@deriv/quill-design';
+
+type TabTrigger = Omit
, 'children'> & {
+ content: ReactNode;
+};
export interface TabProps {
- tabs: ComponentProps[];
+ tabs: TabTrigger[];
className?: string;
children: ReactNode;
}
@@ -17,9 +21,13 @@ export const TabBase = ({ tabs, children, className }: TabProps) => {
return (
- {tabs.map(({ children, ...rest }, i) => (
-
- {children}
+ {tabs.map(({ content, className, ...rest }, i) => (
+
+ {content}
))}
diff --git a/libs/components/src/lib/tab/base/tab.stories.tsx b/libs/components/src/lib/tab/base/tab.stories.tsx
index c6c16dce5..6e6eb1bde 100644
--- a/libs/components/src/lib/tab/base/tab.stories.tsx
+++ b/libs/components/src/lib/tab/base/tab.stories.tsx
@@ -14,9 +14,9 @@ export const Default: Story = {
return (
Home Tab