Skip to content

Commit 4cbab00

Browse files
committed
Fix prop
1 parent 17d0e0a commit 4cbab00

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

generatedTypes/components/tabController/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface TabControllerProps {
1717
/**
1818
* callback for when index has change (will not be called on ignored items)
1919
*/
20-
onChangeIndex: (index: number) => void;
20+
onChangeIndex?: (index: number) => void;
2121
/**
2222
* When using TabController.PageCarousel this should be turned on
2323
*/
@@ -39,7 +39,7 @@ interface StateProps {
3939
carouselOffset: any;
4040
containerWidth: any;
4141
registerTabItems: (tabItemsCount: number, ignoredItems: StateProps['ignoredItems']) => void;
42-
onChangeIndex: (index: number) => void;
42+
onChangeIndex?: (index: number) => void;
4343
}
4444
/**
4545
* @description: A performant solution for a tab controller with lazy load mechanism

src/components/tabController/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export interface TabControllerProps {
4848
/**
4949
* callback for when index has change (will not be called on ignored items)
5050
*/
51-
onChangeIndex: (index: number) => void;
51+
onChangeIndex?: (index: number) => void;
5252
/**
5353
* When using TabController.PageCarousel this should be turned on
5454
*/
@@ -74,7 +74,7 @@ interface StateProps {
7474
containerWidth: any; // TODO: typescript?
7575
// callbacks
7676
registerTabItems: (tabItemsCount: number, ignoredItems: StateProps['ignoredItems']) => void;
77-
onChangeIndex: (index: number) => void;
77+
onChangeIndex?: (index: number) => void;
7878
}
7979

8080
/**

0 commit comments

Comments
 (0)