PR fixes.

pull/1706/head
Warrick Corfe-Tan 4 years ago
parent b92efb9fc6
commit e2ce6c35ee

@ -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;

@ -876,10 +876,9 @@ class MessageInner extends React.PureComponent<MessageRegularProps, State> {
* 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) {

Loading…
Cancel
Save