We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36112fe commit 7a57b79Copy full SHA for 7a57b79
apps/example/src/components/doc-index.tsx
@@ -1,17 +1,16 @@
1
import React from 'react'
2
import { PhotoProvider, PhotoView } from 'react-image-previewer'
3
-import { CloseButton, DragToolbar, SlideToolbar } from 'react-image-previewer/ui'
+import { CloseButton, SlideToolbar } from 'react-image-previewer/ui'
4
import { ImageList, photoImages, Image } from './doc-components'
5
6
export default function DocDemo() {
7
return (
8
<PhotoProvider
9
- mode="drag"
10
overlayRender={props => {
11
- const { mode, onClose } = props
+ const { onClose } = props
12
13
<>
14
- {mode === 'drag' ? <DragToolbar {...props} /> : <SlideToolbar {...props} />}
+ <SlideToolbar {...props} />
15
<CloseButton onClick={onClose} />
16
</>
17
)
0 commit comments