From 7a54a3490f6198aa8dbd15d5aa26b36e33ee6197 Mon Sep 17 00:00:00 2001 From: Anton Palgunov Date: Tue, 22 May 2018 15:14:17 +0100 Subject: [PATCH] Update README.md Fix type of prop onClose in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 94e7c61..e0b8370 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ class App extends React.Component { | props | type | default | description | required | |-------------|--------------|---------|-----------------------------|----------| | visible | string | false | Viewer visible | true | -| onClose | string | - | Specify a function that will be called when Visible close | true | +| onClose | function | - | Specify a function that will be called when Visible close | true | | images | {src: string, alt: string}[] | [] | image source array | true | | activeIndex | number | 0 | active image index | false | | zIndex | number | 1000 | Viewer css z-index | false |