Fix linter + merge
This commit is contained in:
parent
12d7be2b6a
commit
a5a4f2ed7d
6 changed files with 7 additions and 119 deletions
|
@ -118,6 +118,6 @@ export default class AudioPlayer extends React.PureComponent<IProps, IState> {
|
|||
/>
|
||||
<PlaybackClock playback={this.props.playback} defaultDisplaySeconds={0} />
|
||||
</div>
|
||||
</div>
|
||||
</div>;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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>;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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}
|
||||
/>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue