Skip to content

Conversation

@plagdoctor
Copy link
Contributor

related #59

  • creators 페이지에서 검색창 사용하여 creators 검색 결과 확인

@plagdoctor plagdoctor added the feature 기능을 구현합니다. label Oct 6, 2023
@plagdoctor plagdoctor self-assigned this Oct 6, 2023
Comment on lines +27 to +30
const handleSearchButton = () => {
router.push(`/creators?search=${inputs.creators}`);
};

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저희 현재 UI 플로우 상, 강의 페이지(/lectures)와 크리에이터 페이지(/creators)에서 Input 클릭 시에는 검색 페이지로 redirect 하도록 되어있습니다 !

해당 페이지에서는 Input 컴포넌트의 value를 핸들링하는 handleChange와 검색 버튼을 눌렀을 때 핸들링하는 handleSearchButton는 제거되고, Input 컴포넌트 클릭시에 router.push('/search') 만 해줘도 될 것 같습니당

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 저는 검색 결과 나온 상태에선 라우팅 되는 거보다 페이지 내에서 검색 정보 입력되는 게 나아 보였는데요. 모바일 네이버 보니까 또 말씀 하신 게 맞는 거 같고요.. + 로 키워드 제안 되는 것도 생각하면 이동하는 게 맞아 보이네요. 말씀 주신 거에 맞춰서 변경하겠습니다. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature 기능을 구현합니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants