1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

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
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() {