Skip to content

Commit

Permalink
feat: 잘못된 적용 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
daepan committed Mar 3, 2024
1 parent ce648f0 commit 8075a65
Showing 1 changed file with 37 additions and 41 deletions.
78 changes: 37 additions & 41 deletions src/pages/Auth/LoginPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { useMutation } from 'react-query';
import { useSetRecoilState } from 'recoil';
import { setCookie } from 'utils/ts/cookie';
import useBooleanState from 'utils/hooks/useBooleanState';
import MetaHelmet from 'components/common/MetaHelmet';
import { auth } from 'api';
import sha256 from 'utils/ts/SHA-256';
import showToast from 'utils/ts/showToast';
Expand Down Expand Up @@ -88,49 +87,46 @@ function LoginPage() {
};

return (
<>
<MetaHelmet title="코인 - 로그인" />
<div className={styles.template}>
<form className={styles.loginform} onSubmit={onSubmit}>
<input
ref={(inputRef) => { loginRef.current.userId = inputRef; }}
className={styles['form-input']}
autoComplete="username"
name="userId"
placeholder="아이디를 입력하세요"
/>
<input
ref={(inputRef) => { loginRef.current.password = inputRef; }}
className={styles['form-input']}
type="password"
autoComplete="current-password"
name="password"
placeholder="비밀번호를 입력하세요"
/>
<button type="submit" className={styles.loginform__button}>
로그인
</button>
</form>
<div aria-hidden="true" className={styles['auto-login']}>
<label className={styles['auto-login__label']} htmlFor="autoLoginCheckBox">
<input className={styles['auto-login__checkbox']} checked={isAutoLoginFlag} onChange={toggleIsAutoLoginFlag} type="checkbox" id="autoLoginCheckBox" />
자동 로그인
</label>
</div>
<div className={styles.help}>
<a className={styles.help__link} href="https://portal.koreatech.ac.kr/kut/page/findUser.jsp">아이디 찾기</a>
<Link className={styles.help__link} to="/auth/findpw">비밀번호 찾기</Link>
<Link className={styles.help__link} to="/auth/signup">회원가입</Link>
</div>
<span className={styles.template__copyright}>
COPYRIGHT ⓒ&nbsp;
{
<div className={styles.template}>
<form className={styles.loginform} onSubmit={onSubmit}>
<input
ref={(inputRef) => { loginRef.current.userId = inputRef; }}
className={styles['form-input']}
autoComplete="username"
name="userId"
placeholder="아이디를 입력하세요"
/>
<input
ref={(inputRef) => { loginRef.current.password = inputRef; }}
className={styles['form-input']}
type="password"
autoComplete="current-password"
name="password"
placeholder="비밀번호를 입력하세요"
/>
<button type="submit" className={styles.loginform__button}>
로그인
</button>
</form>
<div aria-hidden="true" className={styles['auto-login']}>
<label className={styles['auto-login__label']} htmlFor="autoLoginCheckBox">
<input className={styles['auto-login__checkbox']} checked={isAutoLoginFlag} onChange={toggleIsAutoLoginFlag} type="checkbox" id="autoLoginCheckBox" />
자동 로그인
</label>
</div>
<div className={styles.help}>
<a className={styles.help__link} href="https://portal.koreatech.ac.kr/kut/page/findUser.jsp">아이디 찾기</a>
<Link className={styles.help__link} to="/auth/findpw">비밀번호 찾기</Link>
<Link className={styles.help__link} to="/auth/signup">회원가입</Link>
</div>
<span className={styles.template__copyright}>
COPYRIGHT ⓒ&nbsp;
{
new Date().getFullYear()
}
&nbsp;BY BCSDLab ALL RIGHTS RESERVED.
</span>
</div>
</>
</span>
</div>
);
}

Expand Down

0 comments on commit 8075a65

Please sign in to comment.