Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit cdfbf8a

Browse files
authored
Merge pull request #305 from Ovi/patch-2
renderFooter must return index
2 parents e82578a + 7a14eea commit cdfbf8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image-viewer.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class Props {
134134
/**
135135
* 自定义尾部
136136
*/
137-
public renderFooter?: (currentIndex?: number) => React.ReactElement<any> = () => {
137+
public renderFooter?: (currentIndex: number) => React.ReactElement<any> = () => {
138138
return null as any;
139139
};
140140

0 commit comments

Comments
 (0)