This commit is contained in:
sonnguyenkieio 2021-09-07 15:45:33 +07:00
parent 88fc92fa4f
commit 5248adcd95
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import s from './TabCommon.module.scss'
import TabItem from './TabItem/TabItem'
interface TabCommonProps {
tabs: {ref:RefObject<HTMLLIElement>, tabName: string, active: boolean, onClick: (tabIndex: number, tabPane: string) => void}[];
tabs: {ref:RefObject<HTMLLIElement>, tabName: string, active: boolean, onClick: (tabIndex: number, tabPane?: string) => void}[];
defaultActiveTab: number;
sliderRef : RefObject<HTMLDivElement>;
slideToTab: (ref: any) => void;

View File

@ -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) => {