Skip to content

Commit d5be3b5

Browse files
committed
Resolved warnings
1 parent 62929b4 commit d5be3b5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/components/BandPowerGraph.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ import React, {
88
import { useTheme } from "next-themes";
99
import * as math from "mathjs";
1010

11-
interface graphProps {
11+
interface GraphProps
12+
{
1213
fftData: number[][];
1314
samplingRate: number;
1415
}
1516

16-
const graph: React.FC<graphProps> = ({
17+
const Graph
18+
: React.FC<GraphProps
19+
> = ({
1720
fftData,
1821
samplingRate,
1922
}) => {
@@ -301,4 +304,4 @@ const calculateBrainwavePower = (fftData: number[], freqs: number[]) => {
301304
);
302305
};
303306

304-
export default graph;
307+
export default Graph;

src/components/FFT.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,5 +220,6 @@ import React, {
220220
}
221221
);
222222

223-
export default FFT;
223+
FFT.displayName = "FFT";
224+
export default FFT;
224225

0 commit comments

Comments
 (0)