Skip to content

Commit

Permalink
Merge pull request #170 from kde98892/fix/signup
Browse files Browse the repository at this point in the history
🩹 chore: /signup 검색 시 폼 제출되는 것 제한
  • Loading branch information
kde98892 authored Feb 25, 2024
2 parents 9a6643c + 8fea745 commit 36e3e08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/(route)/signup/_components/ProfileSetup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ const ProfileSetup = ({ steps, handleNextClick, Funnel, Step }: ProfileSetupType
</Step>
<Step name="계정 정보">
<SignupFunnelTitle name="계정 정보" />
<AccountInfo onNext={() => handleNextClick(steps[1])} />
<AccountInfo onNext={() => handleNextClick(steps[2])} />
</Step>
<Step name="프로필 정보">
<SignupFunnelTitle name="프로필 정보" />
<ProfileInfo onNext={() => handleNextClick(steps[2])} />
<ProfileInfo onNext={() => handleNextClick(steps[3])} />
</Step>
<Step name="아티스트 선택">
<SignupFunnelTitle name="아티스트 선택" />
Expand Down
3 changes: 2 additions & 1 deletion app/_components/input/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const SearchInput = ({ keyword, setKeyword, initialKeyword, placeholder = "검
const { search } = watch();

const handleSearchEnter = (event: KeyboardEvent) => {
if (event.keyCode === 13 || event.key === "Enter") {
if (event.key === "Enter") {
event.preventDefault();
setKeyword(getValues("search") ?? "");
}
};
Expand Down

0 comments on commit 36e3e08

Please sign in to comment.