Skip to content

Commit

Permalink
feat(SearchPage): 검색 타입 Tab 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
0jenn0 committed Sep 25, 2024
1 parent 0010fd3 commit c666cab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/src/components/pages/search/SearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,16 @@ const SearchPage = () => {
return (
<S.Layout>
<FloatingButton />
<Tab
labels={["제목", "작성자"]}
tabContent={(selectedIndex) => (
<TravelogueList
key={`${keyword}-${selectedIndex}`}
keyword={keyword}
searchType={selectedIndex === 0 ? "TITLE" : "AUTHOR"}
/>
)}
css={S.TabStyle}
/>
</S.Layout>
);
Expand Down

0 comments on commit c666cab

Please sign in to comment.