From 09d15436b51cbca49ea26623dd2fe5d4f3d68f0d Mon Sep 17 00:00:00 2001 From: ukorvl Date: Tue, 4 Jul 2023 20:29:48 +0400 Subject: [PATCH] update project structure #4 --- components/Menu/MenuList.tsx | 4 ++-- components/ScrollToTop/ScrollToTop.tsx | 2 +- .../{LocationChangeTracker.ts => LocationChangeTracker.tsx} | 0 {utils => lib/gtag/shared}/useDimensions.ts | 0 {utils => lib/gtag/shared}/useScroll.ts | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename lib/gtag/{LocationChangeTracker.ts => LocationChangeTracker.tsx} (100%) rename {utils => lib/gtag/shared}/useDimensions.ts (100%) rename {utils => lib/gtag/shared}/useScroll.ts (100%) 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