Fix linter + merge

This commit is contained in:
Travis Ralston 2021-06-30 13:29:37 -06:00
parent 12d7be2b6a
commit a5a4f2ed7d
6 changed files with 7 additions and 119 deletions

View file

@ -118,6 +118,6 @@ export default class AudioPlayer extends React.PureComponent<IProps, IState> {
/>
<PlaybackClock playback={this.props.playback} defaultDisplaySeconds={0} />
</div>
</div>
</div>;
}
}

View file

@ -46,7 +46,7 @@ export default class DurationClock extends React.PureComponent<IProps, IState> {
}
private onTimeUpdate = (time: number[]) => {
this.setState({durationSeconds: time[1]});
this.setState({ durationSeconds: time[1] });
};
public render() {

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
import { Playback, PlaybackState } from "../../../voice/Playback";
import React, {ReactNode} from "react";
import React, { ReactNode } from "react";
import { UPDATE_EVENT } from "../../../stores/AsyncStore";
import PlaybackWaveform from "./PlaybackWaveform";
import PlayPauseButton from "./PlayPauseButton";
@ -51,7 +51,7 @@ export default class RecordingPlayback extends React.PureComponent<IProps, IStat
}
private onPlaybackUpdate = (ev: PlaybackState) => {
this.setState({playbackPhase: ev});
this.setState({ playbackPhase: ev });
};
public render(): ReactNode {
@ -59,6 +59,6 @@ export default class RecordingPlayback extends React.PureComponent<IProps, IStat
<PlayPauseButton playback={this.props.playback} playbackPhase={this.state.playbackPhase} />
<PlaybackClock playback={this.props.playback} />
<PlaybackWaveform playback={this.props.playback} />
</div>
</div>;
}
}

View file

@ -105,7 +105,7 @@ export default class SeekBar extends React.PureComponent<IProps, IState> {
max={1}
value={this.state.percentage}
step={0.001}
style={{'--fillTo': this.state.percentage} as ISeekCSS}
style={{ '--fillTo': this.state.percentage } as ISeekCSS}
disabled={this.props.playbackPhase === PlaybackState.Decoding}
/>;
}