Apply suggestions from code review

This commit is contained in:
Travis Ralston 2021-06-28 20:40:11 -06:00 committed by GitHub
parent 6cb86057c5
commit e519e704e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 11 deletions

View file

@ -37,13 +37,13 @@ export default class LiveRecordingClock extends React.PureComponent<IProps, ISta
private scheduledUpdate = new MarkedExecution(
() => this.updateClock(),
() => requestAnimationFrame(() => this.scheduledUpdate.trigger()),
)
);
constructor(props) {
super(props);
this.state = {
seconds: 0,
}
};
}
componentDidMount() {
@ -56,7 +56,7 @@ export default class LiveRecordingClock extends React.PureComponent<IProps, ISta
private updateClock() {
this.setState({
seconds: this.seconds,
})
});
}
public render() {

View file

@ -25,7 +25,7 @@ interface IProps {
}
interface IState {
waveform: number[]
waveform: number[];
}
/**
@ -41,13 +41,13 @@ export default class LiveRecordingWaveform extends React.PureComponent<IProps, I
private scheduledUpdate = new MarkedExecution(
() => this.updateWaveform(),
() => requestAnimationFrame(() => this.scheduledUpdate.trigger()),
)
);
constructor(props) {
super(props);
this.state = {
waveform: [],
}
};
}
componentDidMount() {