From 4ffa35c4dcfb013ad5e6890f1ab9366876a5d135 Mon Sep 17 00:00:00 2001 From: Jeon Eonseok Date: Thu, 8 Aug 2024 13:33:49 +0900 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=EB=A6=AC=EB=B7=B0=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=97=90=EC=84=9C=20=EC=B9=B4=ED=85=8C?= =?UTF-8?q?=EA=B3=A0=EB=A6=AC=20=EC=A2=80=20=EB=8D=94=20=EB=B9=A8=EB=A6=AC?= =?UTF-8?q?=20=EC=82=AC=EB=9D=BC=EC=A7=80=EA=B2=8C=20=ED=95=98=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ApplyPage/components/ApplyCategory/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/ApplyPage/components/ApplyCategory/index.tsx b/src/views/ApplyPage/components/ApplyCategory/index.tsx index 20f081c5..9ffd5794 100644 --- a/src/views/ApplyPage/components/ApplyCategory/index.tsx +++ b/src/views/ApplyPage/components/ApplyCategory/index.tsx @@ -1,5 +1,5 @@ import { memo } from 'react'; -import { Link } from 'react-router-dom'; +import { Link, useLocation } from 'react-router-dom'; import useScrollPosition from '@hooks/useScrollPosition'; @@ -10,7 +10,9 @@ interface ApplyCategoryProps { minIndex: number; } const ApplyCategory = memo(({ minIndex }: ApplyCategoryProps) => { - const { isScrollingDown, isScrollTop } = useScrollPosition(950); + const { pathname } = useLocation(); + + const { isScrollingDown, isScrollTop } = useScrollPosition(pathname === '/review' ? 380 : 950); return (