Skip to content

Commit

Permalink
fix TRenderPagination can undeifned
Browse files Browse the repository at this point in the history
  • Loading branch information
imagine10255 committed Jun 13, 2023
1 parent 8193fc3 commit 9188754
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions example/src/config/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export const racingImages = [
export const baseImage = [
{id: 1, color: 'red', imageUrl: asset('/sample/cat/01.jpg')},
{id: 2, color: 'green',imageUrl: asset('/sample/cat/02.jpg')},
{id: 3, color: 'blue',imageUrl: asset('/sample/cat/03.jpg')},
{id: 4, color: 'gray',imageUrl: asset('/sample/cat/04.jpg')},
{id: 5, color: 'white',imageUrl: asset('/sample/cat/05.jpg')},
// {id: 3, color: 'blue',imageUrl: asset('/sample/cat/03.jpg')},
// {id: 4, color: 'gray',imageUrl: asset('/sample/cat/04.jpg')},
// {id: 5, color: 'white',imageUrl: asset('/sample/cat/05.jpg')},
// {id: 6, color: 'black',imageUrl: asset('/sample/cat/vertical-01.jpg')},
// {id: 7, color: 'yellow',imageUrl: asset('/sample/cat/vertical-02.jpg')},
// {id: 8, color: 'purple',imageUrl: asset('/sample/cat/vertical-03.jpg')},
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export enum EDevice {
}

export type TRenderNavButton = (toPrev: TToPrev, toNext: TToNext) => void
export type TRenderPagination = (pageTotal: number) => JSX.Element[]
export type TRenderPagination = (pageTotal: number) => JSX.Element[]|undefined
export type TStateOnChange = (carouselState: ICarouselState) => void
export type TOnMount = () => void
export type TSlideOnClick = () => void
Expand Down

0 comments on commit 9188754

Please sign in to comment.