diff --git a/components/Menu/MenuList.tsx b/components/Menu/MenuList.tsx index e72281f..ee1bc43 100644 --- a/components/Menu/MenuList.tsx +++ b/components/Menu/MenuList.tsx @@ -1,7 +1,7 @@ import {FocusEvent, ReactNode, useCallback, useContext, useRef} from 'react'; import {useHotkeys} from 'react-hotkeys-hook'; -import useScroll from '@/utils/useScroll'; -import useDimensions from '@/utils/useDimensions'; +import useScroll from '@/lib/gtag/shared/useScroll'; +import useDimensions from '@/lib/gtag/shared/useDimensions'; import {MenuContext} from './MenuContext'; /** diff --git a/components/ScrollToTop/ScrollToTop.tsx b/components/ScrollToTop/ScrollToTop.tsx index 6bb6058..6046d71 100644 --- a/components/ScrollToTop/ScrollToTop.tsx +++ b/components/ScrollToTop/ScrollToTop.tsx @@ -3,7 +3,7 @@ import {CSSProperties, useCallback, useState} from 'react'; import {motion} from 'framer-motion'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; -import useScroll, {ScrollHandler} from '@/utils/useScroll'; +import useScroll, {ScrollHandler} from '@/lib/gtag/shared/useScroll'; /** * Props. diff --git a/lib/gtag/LocationChangeTracker.ts b/lib/gtag/LocationChangeTracker.tsx similarity index 100% rename from lib/gtag/LocationChangeTracker.ts rename to lib/gtag/LocationChangeTracker.tsx diff --git a/utils/useDimensions.ts b/lib/gtag/shared/useDimensions.ts similarity index 100% rename from utils/useDimensions.ts rename to lib/gtag/shared/useDimensions.ts diff --git a/utils/useScroll.ts b/lib/gtag/shared/useScroll.ts similarity index 100% rename from utils/useScroll.ts rename to lib/gtag/shared/useScroll.ts