From 7e6ca5e519b53284bb2b2061f9a00271bb76b8a8 Mon Sep 17 00:00:00 2001 From: simhorim Date: Sun, 20 Oct 2024 23:17:42 +0900 Subject: [PATCH] =?UTF-8?q?refactor(constants):=20=EC=83=81=EC=88=98=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=EB=A1=9C=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/pages/search/SearchPage.tsx | 6 +----- frontend/src/components/pages/search/constants.ts | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 frontend/src/components/pages/search/constants.ts diff --git a/frontend/src/components/pages/search/SearchPage.tsx b/frontend/src/components/pages/search/SearchPage.tsx index bc3000e3..c4f89beb 100644 --- a/frontend/src/components/pages/search/SearchPage.tsx +++ b/frontend/src/components/pages/search/SearchPage.tsx @@ -6,11 +6,7 @@ import { extractLastPath } from "@utils/extractId"; import * as S from "./SearchPage.styled"; import TravelogueList from "./TravelogueList/TravelogueList"; - -const TAB_CONTENT = [ - { label: "제목", searchType: "TITLE" }, - { label: "작성자", searchType: "AUTHOR" }, -] as const; +import { TAB_CONTENT } from "./constants"; const SearchPage = () => { const location = useLocation(); diff --git a/frontend/src/components/pages/search/constants.ts b/frontend/src/components/pages/search/constants.ts new file mode 100644 index 00000000..ca81148d --- /dev/null +++ b/frontend/src/components/pages/search/constants.ts @@ -0,0 +1,4 @@ +export const TAB_CONTENT = [ + { label: "제목", searchType: "TITLE" }, + { label: "작성자", searchType: "AUTHOR" }, +] as const;