From e439d2e9112013ce0a6bae46983cbadda88707bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Sat, 17 Jul 2021 15:29:18 +0200 Subject: [PATCH] Delint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/elements/ReplyThread.tsx | 18 +++++++++--------- src/components/views/rooms/ReplyPreview.tsx | 5 ++--- 2 files changed, 11 insertions(+), 12 deletions(-) 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")