Skip to content

Commit

Permalink
feat: 회원가입 페이지 유효성 검사 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
bottlewook committed Jan 11, 2024
1 parent 6730e67 commit 5b92c40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/signup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ function SignupPage() {
mode: 'onBlur',
});

const onSubmit = (data) => {
console.log(data);
const onSubmit = () => {
// console.log(data);
};

return (
Expand All @@ -75,6 +75,7 @@ function SignupPage() {
label="비밀번호"
required
placeholder="비밀번호"
isPasswordType
{...register('password', {
required: true,
pattern: VALIDATION_MESSAGE_MAP.password.value,
Expand All @@ -86,6 +87,7 @@ function SignupPage() {
label="비밀번호 확인"
required
placeholder="비밀번호 확인"
isPasswordType
{...register('confirmingPassword', {
required: true,
// eslint-disable-next-line consistent-return
Expand Down

0 comments on commit 5b92c40

Please sign in to comment.