mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add plugins to lightbox
This commit is contained in:
parent
8838ade283
commit
bcd5fa9f64
1 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,9 @@ import { isDarkTheme } from '../../../lib/themeUpdater'
|
|||
import { ArticleMutations } from '../../../lib/articleActions'
|
||||
import { Lightbox, SlideImage } from 'yet-another-react-lightbox'
|
||||
import 'yet-another-react-lightbox/styles.css'
|
||||
import Download from 'yet-another-react-lightbox/plugins/download'
|
||||
import Fullscreen from 'yet-another-react-lightbox/plugins/fullscreen'
|
||||
import Zoom from 'yet-another-react-lightbox/plugins/zoom'
|
||||
|
||||
import loadjs from 'loadjs'
|
||||
|
||||
|
|
@ -271,6 +274,7 @@ export function Article(props: ArticleProps): JSX.Element {
|
|||
index={lightboxIndex}
|
||||
close={() => setLightboxOpen(false)}
|
||||
slides={imageSrcs}
|
||||
plugins={[Fullscreen, Download, Zoom]}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue