From d9cc12684560b17eb0b6021f34f98293c273645b Mon Sep 17 00:00:00 2001 From: Sergei Baranovski Date: Wed, 18 Jan 2023 16:05:58 +0300 Subject: [PATCH] fix: change Tabs type --- .../components/src/components/tabs/tabs.tsx | 26 +++++++++---------- .../reports/src/Containers/open-positions.tsx | 13 ++++++++++ 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/packages/components/src/components/tabs/tabs.tsx b/packages/components/src/components/tabs/tabs.tsx index ca49aefa605e..1e2e53082025 100644 --- a/packages/components/src/components/tabs/tabs.tsx +++ b/packages/components/src/components/tabs/tabs.tsx @@ -7,26 +7,26 @@ import ThemedScrollbars from '../themed-scrollbars/themed-scrollbars'; type TTabsProps = RouteComponentProps & React.PropsWithChildren<{ - active_icon_color?: string; + active_icon_color: string; active_index?: number; - background_color?: string; - bottom?: boolean; - center?: boolean; + background_color: string; + bottom: boolean; + center: boolean; className?: string; - fit_content?: boolean; + fit_content: boolean; has_active_line?: boolean; has_bottom_line?: boolean; header_fit_content: boolean; history: History; - icon_color?: string; - icon_size?: number; - is_100vw?: boolean; - is_full_width?: boolean; - is_overflow_hidden?: boolean; - is_scrollable?: boolean; + icon_color: string; + icon_size: number; + is_100vw: boolean; + is_full_width: boolean; + is_overflow_hidden: boolean; + is_scrollable: boolean; onTabItemClick: (active_tab_index: number) => void; - should_update_hash?: boolean; - single_tab_has_no_label?: boolean; + should_update_hash: boolean; + single_tab_has_no_label: boolean; top: boolean; }>; diff --git a/packages/reports/src/Containers/open-positions.tsx b/packages/reports/src/Containers/open-positions.tsx index 47a3da0bcab5..bb70ac6c2306 100644 --- a/packages/reports/src/Containers/open-positions.tsx +++ b/packages/reports/src/Containers/open-positions.tsx @@ -510,6 +510,19 @@ const OpenPositions = ({ onTabItemClick={setActiveTabIndex} top header_fit_content={!isMobile()} + bottom={false} + active_icon_color={''} + background_color={''} + center={false} + fit_content={false} + icon_color={''} + icon_size={0} + is_100vw={false} + is_full_width={false} + is_overflow_hidden={false} + is_scrollable={false} + should_update_hash={false} + single_tab_has_no_label={false} >