Show lightbox controls based on presence of handlers
parent
59650035ec
commit
96be0df8c7
@ -1,10 +1,12 @@
|
|||||||
```js
|
```js
|
||||||
|
const noop = () => {};
|
||||||
|
|
||||||
<div style={{position: 'relative', width: '100%', height: 500}}>
|
<div style={{position: 'relative', width: '100%', height: 500}}>
|
||||||
<Lightbox
|
<Lightbox
|
||||||
imageURL="https://placekitten.com/800/600"
|
imageURL="https://placekitten.com/800/600"
|
||||||
shouldShowSaveAsButton={true}
|
onNext={noop}
|
||||||
shouldShowNextButton={true}
|
onPrevious={noop}
|
||||||
shouldShowPreviousButton={true}
|
onSave={noop}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue