From e2ce6c35eeb73389cd4fb08feaf1e8b0f605ec63 Mon Sep 17 00:00:00 2001 From: Warrick Corfe-Tan Date: Mon, 21 Jun 2021 15:07:58 +1000 Subject: [PATCH] PR fixes. --- ts/components/OnionStatusDialog.tsx | 6 ------ ts/components/conversation/Message.tsx | 7 +++---- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/ts/components/OnionStatusDialog.tsx b/ts/components/OnionStatusDialog.tsx index 8a5aa1a86..5b418e555 100644 --- a/ts/components/OnionStatusDialog.tsx +++ b/ts/components/OnionStatusDialog.tsx @@ -27,12 +27,6 @@ import { // tslint:disable-next-line: no-submodule-imports import useNetworkState from 'react-use/lib/useNetworkState'; -export type OnionPathModalType = { - confirmText?: string; - cancelText?: string; - title?: string; -}; - export type StatusLightType = { glowStartDelay: number; glowDuration: number; diff --git a/ts/components/conversation/Message.tsx b/ts/components/conversation/Message.tsx index aa74447ec..6f93a334a 100644 --- a/ts/components/conversation/Message.tsx +++ b/ts/components/conversation/Message.tsx @@ -876,10 +876,9 @@ class MessageInner extends React.PureComponent { * Doubles / halves the playback speed based on the current playback speed. */ private updatePlaybackSpeed() { - this.setState({ - ...this.state, - playbackSpeed: this.state.playbackSpeed === 1 ? 2 : 1, - }); + this.setState(prevState => ({ + playbackSpeed: prevState.playbackSpeed === 1 ? 2 : 1, + })); } private handleContextMenu(e: any) {