From 5248adcd95423bc6905612f57ec55259d9cf09a9 Mon Sep 17 00:00:00 2001 From: sonnguyenkieio Date: Tue, 7 Sep 2021 15:45:33 +0700 Subject: [PATCH] update --- src/components/common/TabCommon/TabCommon.tsx | 2 +- src/components/common/TabCommon/TabItem/TabItem.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/TabCommon/TabCommon.tsx b/src/components/common/TabCommon/TabCommon.tsx index a2d47c1ed..1b56d8a4b 100644 --- a/src/components/common/TabCommon/TabCommon.tsx +++ b/src/components/common/TabCommon/TabCommon.tsx @@ -4,7 +4,7 @@ import s from './TabCommon.module.scss' import TabItem from './TabItem/TabItem' interface TabCommonProps { - tabs: {ref:RefObject, tabName: string, active: boolean, onClick: (tabIndex: number, tabPane: string) => void}[]; + tabs: {ref:RefObject, tabName: string, active: boolean, onClick: (tabIndex: number, tabPane?: string) => void}[]; defaultActiveTab: number; sliderRef : RefObject; slideToTab: (ref: any) => void; diff --git a/src/components/common/TabCommon/TabItem/TabItem.tsx b/src/components/common/TabCommon/TabItem/TabItem.tsx index 4c0a7cf30..ab9eb69f9 100644 --- a/src/components/common/TabCommon/TabItem/TabItem.tsx +++ b/src/components/common/TabCommon/TabItem/TabItem.tsx @@ -4,7 +4,7 @@ import s from './TabItem.module.scss' interface TabItemProps { active: boolean; children: string; - onClick: (tabIndex: number, tabPane: string) => void; + onClick: (tabIndex: number, tabPane?: string) => void; } const TabItem = ({ active = false, children, onClick } : TabItemProps) => {