Skip to content

Commit 62e42ac

Browse files
authored
Merge pull request #11 from KeyValueSoftwareSystems/change-hook-filename
hook file renamed
2 parents 31ac376 + 12b6d38 commit 62e42ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/scatter-graph/ScatterGraph.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { FC, ReactElement } from 'react';
22

33
import { FormattedGraphPoint, ScatterGraphPropTypes, DefaultValueBoxPropTypes } from '../types/types';
4-
import { useGraphDetails } from './hooks';
4+
import useScatterPlot from './useScatterPlot';
55

66
import './styles.css';
77

@@ -39,7 +39,7 @@ const ScatterGraph: FC<ScatterGraphPropTypes> = ({
3939
axisValues,
4040
yRatio,
4141
parentNode
42-
} = useGraphDetails(data, graphHeight);
42+
} = useScatterPlot(data, graphHeight);
4343

4444
return (
4545
<div style={{ position: 'relative', display: 'flex' }}>

src/scatter-graph/hooks.ts renamed to src/scatter-graph/useScatterPlot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useEffect, useState, useRef } from 'react';
22
import { getAxisRanges } from './utils';
33
import { GraphPoint, GraphDetailsHookProps } from '../types/types';
44

5-
const useGraphDetails = (
5+
const useScatterPlot = (
66
data: Array<GraphPoint>,
77
graphHeight: number
88
): GraphDetailsHookProps => {
@@ -75,4 +75,4 @@ const useGraphDetails = (
7575
}
7676
}
7777

78-
export { useGraphDetails };
78+
export default useScatterPlot;

0 commit comments

Comments
 (0)