diff --git a/src/components/views/elements/ReplyThread.tsx b/src/components/views/elements/ReplyThread.tsx index 652707b5d9..0eb795e257 100644 --- a/src/components/views/elements/ReplyThread.tsx +++ b/src/components/views/elements/ReplyThread.tsx @@ -36,25 +36,25 @@ import { Room } from 'matrix-js-sdk/src/models/room'; interface IProps { // the latest event in this chain of replies - parentEv?: MatrixEvent, + parentEv?: MatrixEvent; // called when the ReplyThread contents has changed, including EventTiles thereof - onHeightChanged: () => void, - permalinkCreator: RoomPermalinkCreator, + onHeightChanged: () => void; + permalinkCreator: RoomPermalinkCreator; // Specifies which layout to use. - layout?: Layout, + layout?: Layout; // Whether to always show a timestamp - alwaysShowTimestamps?: boolean, + alwaysShowTimestamps?: boolean; } interface IState { // The loaded events to be rendered as linear-replies - events: MatrixEvent[], + events: MatrixEvent[]; // The latest loaded event which has not yet been shown - loadedEv: MatrixEvent, + loadedEv: MatrixEvent; // Whether the component is still loading more events - loading: boolean, + loading: boolean; // Whether as error was encountered fetching a replied to event. - err: boolean, + err: boolean; } // This component does no cycle detection, simply because the only way to make such a cycle would be to diff --git a/src/components/views/rooms/ReplyPreview.tsx b/src/components/views/rooms/ReplyPreview.tsx index 9682ce2bfe..a3d018ec2d 100644 --- a/src/components/views/rooms/ReplyPreview.tsx +++ b/src/components/views/rooms/ReplyPreview.tsx @@ -18,7 +18,6 @@ import React from 'react'; import dis from '../../../dispatcher/dispatcher'; import { _t } from '../../../languageHandler'; import RoomViewStore from '../../../stores/RoomViewStore'; -import PropTypes from "prop-types"; import { RoomPermalinkCreator } from "../../../utils/permalinks/Permalinks"; import { replaceableComponent } from "../../../utils/replaceableComponent"; import ReplyTile from './ReplyTile'; @@ -33,11 +32,11 @@ function cancelQuoting() { } interface IProps { - permalinkCreator: RoomPermalinkCreator, + permalinkCreator: RoomPermalinkCreator; } interface IState { - event: MatrixEvent + event: MatrixEvent; } @replaceableComponent("views.rooms.ReplyPreview")