DetailedStatus: remove unused props
This commit is contained in:
parent
73ec6a92bb
commit
bf7c08d4d1
2 changed files with 1 additions and 16 deletions
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue