From bb5c252115ef6852f10c7bd8c9234dcfb73f12dc Mon Sep 17 00:00:00 2001 From: SKairinos Date: Tue, 18 Jul 2023 14:27:49 +0100 Subject: [PATCH] fix: tab children type --- src/components/page/TabBar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/page/TabBar.tsx b/src/components/page/TabBar.tsx index 4f771a7f..ed6dafa5 100644 --- a/src/components/page/TabBar.tsx +++ b/src/components/page/TabBar.tsx @@ -22,13 +22,13 @@ import { import { primary } from '../../theme/colors'; import { tryValidateSync } from '../../helpers/yup'; -import Section, { SectionElement } from './Section'; +import Section from './Section'; export interface TabBarProps { header: string; tabs: Array<{ label: string; - children: SectionElement | SectionElement[]; + children: React.ReactNode; path: string; }>; originalPath: string;