DetailedStatus: remove unused props

This commit is contained in:
Alex Gleason 2023-05-11 11:55:30 -05:00
parent 73ec6a92bb
commit bf7c08d4d1
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 1 additions and 16 deletions

View file

@ -15,14 +15,10 @@ import { getActualStatus } from 'soapbox/utils/status';
import StatusInteractionBar from './status-interaction-bar';
import type { List as ImmutableList } from 'immutable';
import type { Attachment as AttachmentEntity, Group, Status as StatusEntity } from 'soapbox/types/entities';
import type { Group, Status as StatusEntity } from 'soapbox/types/entities';
interface IDetailedStatus {
status: StatusEntity
onOpenMedia: (media: ImmutableList<AttachmentEntity>, index: number) => void
onOpenVideo: (media: ImmutableList<AttachmentEntity>, start: number) => void
onToggleHidden: (status: StatusEntity) => void
showMedia: boolean
onOpenCompareHistoryModal: (status: StatusEntity) => void
onToggleMediaVisibility: () => void

View file

@ -230,14 +230,6 @@ const Thread: React.FC<IThread> = (props) => {
dispatch(mentionCompose(account));
};
const handleOpenMedia = (media: ImmutableList<AttachmentEntity>, index: number) => {
dispatch(openModal('MEDIA', { media, status, index }));
};
const handleOpenVideo = (media: ImmutableList<AttachmentEntity>, time: number) => {
dispatch(openModal('VIDEO', { media, time }));
};
const handleHotkeyOpenMedia = (e?: KeyboardEvent) => {
const { onOpenMedia, onOpenVideo } = props;
const firstAttachment = status?.media_attachments.get(0);
@ -478,9 +470,6 @@ const Thread: React.FC<IThread> = (props) => {
<DetailedStatus
status={status}
onOpenVideo={handleOpenVideo}
onOpenMedia={handleOpenMedia}
onToggleHidden={handleToggleHidden}
showMedia={showMedia}
onToggleMediaVisibility={handleToggleMediaVisibility}
onOpenCompareHistoryModal={handleOpenCompareHistoryModal}