aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/AudioWaveform.tsx
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2021-09-12 12:32:49 -0400
committermehekj <mehek.jethani@gmail.com>2021-09-12 12:32:49 -0400
commitd71bc56628c2193b537b92a186785eaffa3a1eef (patch)
tree0e346527d01ef4d32a28cf9738323c6f49656dfb /src/client/views/AudioWaveform.tsx
parent23db5275a9477d5894e76a2ad6f1795fb0f99b71 (diff)
parent9ac6931dabac40a7e530d144c1d1123548de373f (diff)
Merge branch 'master' into temporalmedia-mehek
Diffstat (limited to 'src/client/views/AudioWaveform.tsx')
-rw-r--r--src/client/views/AudioWaveform.tsx24
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>
);
}