diff options
Diffstat (limited to 'src/client/views/AudioWaveform.tsx')
-rw-r--r-- | src/client/views/AudioWaveform.tsx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/client/views/AudioWaveform.tsx b/src/client/views/AudioWaveform.tsx index f519f9ef0..8f3b7c2cd 100644 --- a/src/client/views/AudioWaveform.tsx +++ b/src/client/views/AudioWaveform.tsx @@ -67,7 +67,7 @@ export class AudioWaveform extends React.Component<AudioWaveformProps> { ); } ); - }; + } @action createTrimBuckets = () => { @@ -84,7 +84,7 @@ export class AudioWaveform extends React.Component<AudioWaveformProps> { (NumCast(this.props.layoutDoc.clipEnd) / this.props.duration) * 100 ); return audioBuckets.slice(start, end); - }; + } render() { const audioBuckets = Cast( @@ -110,16 +110,16 @@ export class AudioWaveform extends React.Component<AudioWaveformProps> { progressColor={Colors.MEDIUM_BLUE} /> ) : ( - <Waveform - color={Colors.MEDIUM_BLUE} - height={this._waveHeight} - barWidth={0.1} - pos={this.props.duration} - duration={this.props.duration} - peaks={this.createTrimBuckets()} - progressColor={Colors.MEDIUM_BLUE} - /> - )} + <Waveform + color={Colors.MEDIUM_BLUE} + height={this._waveHeight} + barWidth={0.1} + pos={this.props.duration} + duration={this.props.duration} + peaks={this.createTrimBuckets()} + progressColor={Colors.MEDIUM_BLUE} + /> + )} </div> ); } |