Skip to content

Commit

Permalink
[FEAT] 입력된 값이 있는 경우에만 상태 메시지를 출력 #57
Browse files Browse the repository at this point in the history
  • Loading branch information
yoouyeon committed Aug 1, 2023
1 parent 5ac828d commit 6a120cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/SignUp/EmailCheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function EmailCheck() {
}`
)}
>
{message ? message : '이메일을 입력해주세요.'}
{message ? message : ''}
</p>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/SignUp/PasswordCheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function PasswordCheck({ mode }: PasswordCheckProps) {
`${status === 'OK' || status === 'MATCHED' ? 'SUCCESS' : 'ERROR'}`
)}
>
{message}
{password.length === 0 ? '' : message}
</p>
</div>
);
Expand Down
1 change: 1 addition & 0 deletions src/styles/SignUp/SignUp.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const FormContainer = css({
export const StatusMessage = (theme: Theme, status: 'SUCCESS' | 'ERROR') =>
css({
fontSize: '1.6rem',
minHeight: '2.4rem',
color: status === 'SUCCESS' ? theme.green : theme.red,
});

Expand Down

0 comments on commit 6a120cb

Please sign in to comment.