Skip to content

Commit

Permalink
refactor: PasswordTextField의 isMarked에 기본값 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
fecapark committed May 22, 2024
1 parent 005bf4c commit bec74a8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const CurrentPasswordForm = (props: CurrentPasswordFormProps) => {
onChange={(e) => handlePasswordChange(e.target.value)}
isNegative={isError}
helperLabel={isError ? '비밀번호가 일치하지 않습니다.' : ''}
isMarked={true}
/>
</StyledInputContainer>
<StyledButtonContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export const NewPasswordForm = ({ sessionToken }: NewPasswordFormProps) => {
helperLabel={
isNewPasswordFieldNegative ? '숫자와 영문자 조합으로 8자 이상 입력해주세요.' : ''
}
isMarked={true}
/>
<StyledInputAnimation
className={!isNewPasswordError && newPassword.length >= 8 ? 'active' : ''}
Expand All @@ -56,7 +55,6 @@ export const NewPasswordForm = ({ sessionToken }: NewPasswordFormProps) => {
onChange={(e) => setNewPasswordCheck(e.target.value)}
isNegative={isRepeatPasswordFieldNegative}
helperLabel={isRepeatPasswordFieldNegative ? '비밀번호가 일치하지 않습니다.' : ''}
isMarked={true}
/>
</StyledInputAnimation>
</StyledInputContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export const SignupForm = ({ email, onConfirm }: SignupFormProps) => {
fieldLabel="사용할 비밀번호를 입력해주세요."
helperLabel="숫자와 영문자 조합으로 8자 이상 입력해주세요"
placeholder="비밀번호"
isMarked={true}
isNegative={!isPasswordValid && passwordValidOnce.current}
onChange={(e) => {
if (isPasswordValid) passwordValidOnce.current = true;
Expand Down
1 change: 0 additions & 1 deletion src/home/pages/Login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export const Login = () => {
placeholder="영문숫자포함8글자"
onChange={(e) => setPassword(e.target.value)}
isNegative={failedLogin}
isMarked={true}
/>

<BoxButton size="large" rounding={8} variant="filled" onClick={handleLoginClick}>
Expand Down

0 comments on commit bec74a8

Please sign in to comment.