mirror of
https://github.com/vercel/commerce.git
synced 2025-07-21 03:41:22 +00:00
update
This commit is contained in:
parent
88fc92fa4f
commit
5248adcd95
@ -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;
|
||||
|
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user