feat: Tab Common

This commit is contained in:
sonnguyenkieio 2021-09-08 09:58:06 +07:00
parent 69e685b55c
commit 7fcea39572
3 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import React, { RefObject, useEffect } from "react" import React, { RefObject, useEffect } from "react"
import s from './TabCommon.module.scss' import s from './TabCommon.module.scss'
import TabItem from './TabItem/TabItem' import TabItem from './components/TabItem/TabItem'
interface TabCommonProps { 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}[];