diff --git a/src/components/attachment-thumbs.tsx b/src/components/attachment-thumbs.tsx index 4829b7688..641765da3 100644 --- a/src/components/attachment-thumbs.tsx +++ b/src/components/attachment-thumbs.tsx @@ -4,11 +4,10 @@ import { openModal } from 'soapbox/actions/modals.ts'; import { MediaGallery } from 'soapbox/features/ui/util/async-components.ts'; import { useAppDispatch } from 'soapbox/hooks/useAppDispatch.ts'; -import type { List as ImmutableList } from 'immutable'; import type { Attachment } from 'soapbox/types/entities.ts'; interface IAttachmentThumbs { - media: ImmutableList; + media: Attachment[]; onClick?(): void; sensitive?: boolean; } @@ -18,7 +17,7 @@ const AttachmentThumbs = (props: IAttachmentThumbs) => { const dispatch = useAppDispatch(); const fallback =
; - const onOpenMedia = (media: ImmutableList, index: number) => dispatch(openModal('MEDIA', { media, index })); + const onOpenMedia = (media: Attachment[], index: number) => dispatch(openModal('MEDIA', { media, index })); return (
@@ -44,4 +43,4 @@ const AttachmentThumbs = (props: IAttachmentThumbs) => { ); }; -export default AttachmentThumbs; +export default AttachmentThumbs; \ No newline at end of file