From 4966b2152eb213bac34cbcb0ff01c246b7746f5c Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 14 Dec 2022 15:35:15 -0600 Subject: Add post embeds (images and external links) --- src/view/com/lightbox/Lightbox.tsx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/view/com/lightbox/Lightbox.tsx') diff --git a/src/view/com/lightbox/Lightbox.tsx b/src/view/com/lightbox/Lightbox.tsx index 9432f0151..198f20391 100644 --- a/src/view/com/lightbox/Lightbox.tsx +++ b/src/view/com/lightbox/Lightbox.tsx @@ -7,6 +7,7 @@ import {useStores} from '../../../state' import * as models from '../../../state/models/shell-ui' import * as ProfileImageLightbox from './ProfileImage' +import * as ImageLightbox from './Image' export const Lightbox = observer(function Lightbox() { const store = useStores() @@ -26,6 +27,12 @@ export const Lightbox = observer(function Lightbox() { {...(store.shell.activeLightbox as models.ProfileImageLightbox)} /> ) + } else if (store.shell.activeLightbox?.name === 'image') { + element = ( + + ) } else { return } -- cgit 1.4.1