From ef79495638b8ce5527abe2e0c54f213a3d7579c7 Mon Sep 17 00:00:00 2001 From: river <130737187+0jenn0@users.noreply.github.com> Date: Wed, 25 Sep 2024 16:09:22 +0900 Subject: [PATCH] =?UTF-8?q?refactor(usePreviousPage):=20type=EC=97=90?= =?UTF-8?q?=EC=84=9C=20interface=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/hooks/usePreviousPage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/hooks/usePreviousPage.ts b/frontend/src/hooks/usePreviousPage.ts index 9f8e0dca..55505294 100644 --- a/frontend/src/hooks/usePreviousPage.ts +++ b/frontend/src/hooks/usePreviousPage.ts @@ -3,9 +3,9 @@ import { useLocation, useNavigate } from "react-router-dom"; import { ROUTE_PATHS_MAP } from "@constants/route"; -type PreviousPages = { +interface PreviousPages { [key: string]: string; -}; +} const usePreviousPage = () => { const navigate = useNavigate();