Skip to content

Commit

Permalink
fix: add React.PropsWithChildren to tabs.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-deriv committed Jan 18, 2023
1 parent cf05b3e commit 9673fe7
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions packages/components/src/components/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@ import Tab from './tab';
import { useConstructor } from '../../hooks';
import ThemedScrollbars from '../themed-scrollbars/themed-scrollbars';

type TTabsProps = RouteComponentProps & {
active_icon_color?: string;
active_index?: number;
background_color?: string;
bottom?: boolean;
center?: boolean;
children: React.ReactNode & React.ReactNode[];
className?: string;
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;
onTabItemClick: (active_tab_index: number) => void;
should_update_hash?: boolean;
single_tab_has_no_label?: boolean;
top: boolean;
};
type TTabsProps = RouteComponentProps &
React.PropsWithChildren<{
active_icon_color?: string;
active_index?: number;
background_color?: string;
bottom?: boolean;
center?: boolean;
className?: string;
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;
onTabItemClick: (active_tab_index: number) => void;
should_update_hash?: boolean;
single_tab_has_no_label?: boolean;
top: boolean;
}>;

const Tabs = ({
active_icon_color,
Expand Down

0 comments on commit 9673fe7

Please sign in to comment.