chore(deps-dev): bump prettier from 2.1.2 to 2.8.8 (#5372)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
dependabot[bot]
2023-05-22 19:14:56 -07:00
committed by GitHub
parent 3317bf2396
commit fbd16d4b9a
73 changed files with 556 additions and 645 deletions

View File

@@ -1,8 +1,9 @@
import { useState, useEffect } from "react";
export default function useComponentSize(
ref: React.RefObject<HTMLElement>
): { width: number; height: number } {
export default function useComponentSize(ref: React.RefObject<HTMLElement>): {
width: number;
height: number;
} {
const [size, setSize] = useState({
width: ref.current?.clientWidth || 0,
height: ref.current?.clientHeight || 0,

View File

@@ -16,8 +16,7 @@ type MousePosition = [number, number];
export const useMousePosition = () => {
const isMounted = useIsMounted();
const [mousePosition, setMousePosition] = React.useState<MousePosition>([
0,
0,
0, 0,
]);
const updateMousePosition = React.useMemo(