From bb1823ee6d6dfcc8ca162209624e23dd2027b14b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 10 Oct 2022 15:16:35 -0500 Subject: [PATCH] AttachmentThumbs: make visible --- app/soapbox/components/attachment-thumbs.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/soapbox/components/attachment-thumbs.tsx b/app/soapbox/components/attachment-thumbs.tsx index 37b9fc9c6e..3ac1dbf5ff 100644 --- a/app/soapbox/components/attachment-thumbs.tsx +++ b/app/soapbox/components/attachment-thumbs.tsx @@ -6,9 +6,10 @@ import Bundle from 'soapbox/features/ui/components/bundle'; import { MediaGallery } from 'soapbox/features/ui/util/async-components'; import type { List as ImmutableList } from 'immutable'; +import type { Attachment } from 'soapbox/types/entities'; interface IAttachmentThumbs { - media: ImmutableList> + media: ImmutableList onClick?(): void sensitive?: boolean } @@ -18,7 +19,7 @@ const AttachmentThumbs = (props: IAttachmentThumbs) => { const dispatch = useDispatch(); const renderLoading = () =>
; - const onOpenMedia = (media: Immutable.Record, index: number) => dispatch(openModal('MEDIA', { media, index })); + const onOpenMedia = (media: ImmutableList, index: number) => dispatch(openModal('MEDIA', { media, index })); return (
@@ -30,6 +31,7 @@ const AttachmentThumbs = (props: IAttachmentThumbs) => { height={50} compact sensitive={sensitive} + visible /> )}