mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 03:31:23 +00:00
update
This commit is contained in:
@@ -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) => {
|
||||
|
Reference in New Issue
Block a user