Skip to content

Commit

Permalink
SKRF-454 refactor: search page keyword (#218)
Browse files Browse the repository at this point in the history
* fix: 검색결과 페이지에서 debouncedKeyword->keyword전달로 수정

* design: 페이지네이션 하단 여백 없던 오류 해결
  • Loading branch information
colorkite10 authored Dec 1, 2023
1 parent f55eff3 commit 95f02d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/SearchInputForm/SearchInputForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const SearchInputForm = () => {
}, []);

const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {
if (event.key === 'Enter' && debouncedKeyword.trim() !== '') {
navigate(PATH.SEARCH(debouncedKeyword));
if (event.key === 'Enter' && keyword.trim() !== '') {
navigate(PATH.SEARCH(keyword));
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/pages/SearchResultPage/SearchResultPage.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const SearchesContainer = styled.div`
flex-direction: column;
align-items: center;
justify-content: space-between;
height: 80vh;
height: 100vh;
`;

const SearchMessageStyled = styled.div`
Expand Down

0 comments on commit 95f02d6

Please sign in to comment.