Skip to content

Commit 098667b

Browse files
refactor(UNT-T26896): file rename and react warning
1 parent 9c3efa7 commit 098667b

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

File renamed without changes.
File renamed without changes.

src/components/WaveformCandle/WaveformCandle.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Colors } from '../../theme';
44
import styles from './WaveformCandleStyles';
55
import type { IWaveformCandle } from './WaveformCandleTypes';
66

7-
export const WaveformCandle = ({
7+
export const WaveformCandle: React.FC<IWaveformCandle> = ({
88
index,
99
amplitude,
1010
parentViewLayout,
@@ -15,8 +15,8 @@ export const WaveformCandle = ({
1515
currentProgress = 0,
1616
waveColor,
1717
scrubColor,
18-
candleHeightScale
19-
}: IWaveformCandle) => {
18+
candleHeightScale,
19+
}) => {
2020
const maxHeight = (parentViewLayout?.height ?? 0) - 10;
2121
const completedIndex = (currentProgress / songDuration) * noOfSamples;
2222

@@ -43,7 +43,10 @@ export const WaveformCandle = ({
4343
width: candleWidth,
4444
marginRight: candleSpace,
4545
maxHeight,
46-
height: (isNaN(amplitude) ? 0 : amplitude) * maxHeight * candleHeightScale, // Adjust the height scale as needed
46+
height:
47+
(isNaN(amplitude) ? 0 : amplitude) *
48+
maxHeight *
49+
candleHeightScale, // Adjust the height scale as needed
4750
minHeight: candleWidth,
4851
borderRadius: candleWidth,
4952
},

0 commit comments

Comments
 (0)