diff options
| author | bobzel <zzzman@gmail.com> | 2023-12-03 16:21:52 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-12-03 16:21:52 -0500 |
| commit | c654a31fdb48a76fb4b0562168c920ca850a7b9e (patch) | |
| tree | 76410a9da12919e35f49d3d1f3899856fb0584ce /src/client/views/AudioWaveform.tsx | |
| parent | 23f789ab0bc9947f1bd23816183df2b5cc89b0e6 (diff) | |
cleaned up warnings and errors, working with typescript 20.10
Diffstat (limited to 'src/client/views/AudioWaveform.tsx')
| -rw-r--r-- | src/client/views/AudioWaveform.tsx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/client/views/AudioWaveform.tsx b/src/client/views/AudioWaveform.tsx index c779ce8c4..1fd2fedc3 100644 --- a/src/client/views/AudioWaveform.tsx +++ b/src/client/views/AudioWaveform.tsx @@ -1,4 +1,4 @@ -import React = require('react'); +import * as React from 'react'; import axios from 'axios'; import { action, computed, IReactionDisposer, reaction } from 'mobx'; import { observer } from 'mobx-react'; @@ -102,7 +102,15 @@ export class AudioWaveform extends React.Component<AudioWaveformProps> { render() { return ( <div className="audioWaveform"> - <Waveform color={Colors.MEDIUM_BLUE_ALT} height={this.waveHeight} barWidth={200 / this.audioBuckets.length} pos={this.props.duration} duration={this.props.duration} peaks={Array.from(this.audioBuckets)} progressColor={Colors.MEDIUM_BLUE_ALT} /> + <Waveform + color={Colors.MEDIUM_BLUE_ALT} + height={this.waveHeight} + barWidth={200 / this.audioBuckets.length} + pos={this.props.duration} + duration={this.props.duration} + peaks={Array.from(this.audioBuckets)} + progressColor={Colors.MEDIUM_BLUE_ALT} + /> </div> ); } |
