Skip to content

Commit

Permalink
refactor(constants): 상수 파일로 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
simorimi committed Oct 20, 2024
1 parent cac5077 commit 7e6ca5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions frontend/src/components/pages/search/SearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/components/pages/search/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const TAB_CONTENT = [
{ label: "제목", searchType: "TITLE" },
{ label: "작성자", searchType: "AUTHOR" },
] as const;

0 comments on commit 7e6ca5e

Please sign in to comment.