Skip to content

Commit e5157f8

Browse files
author
Robert Crocker
committed
Ran npm run format.
1 parent b0fd473 commit e5157f8

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/components/VoronoiCell.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ export const VoronoiCell = ({
4848
data,
4949
};
5050

51-
tooltipState.distanceFromTop =
52-
tooltipState.cursorY + margin.top;
51+
tooltipState.distanceFromTop = tooltipState.cursorY + margin.top;
5352
tooltipState.distanceFromRight =
5453
width - (margin.left + tooltipState.cursorX);
5554
tooltipState.distanceFromLeft = margin.left + tooltipState.cursorX;

src/hooks/useWindowDimensions.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { useState, useEffect } from 'react';
22

3-
43
export default function useWindowDimensions() {
5-
const [windowDimensions, setWindowDimensions] = useState(
6-
{width: 0, height: 0}
7-
);
4+
const [windowDimensions, setWindowDimensions] = useState({
5+
width: 0,
6+
height: 0,
7+
});
88

99
useEffect(() => {
1010
function getWindowDimensions() {
@@ -17,7 +17,7 @@ export default function useWindowDimensions() {
1717
function handleResize() {
1818
setWindowDimensions(getWindowDimensions());
1919
}
20-
handleResize()
20+
handleResize();
2121

2222
window.addEventListener('resize', handleResize);
2323
return () => window.removeEventListener('resize', handleResize);

0 commit comments

Comments
 (0)