Skip to content

Commit

Permalink
bug: login타입 수정 및 불필요한 태그 삭제 #73
Browse files Browse the repository at this point in the history
  • Loading branch information
seoye0ng committed Jan 14, 2024
1 parent 4d34512 commit b507d6b
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import Header from '@components/shared/header/Header';
import Spacing from '@components/shared/spacing/Spacing';
import TextField from '@components/shared/text-field/TextField';
import Title from '@components/shared/title/Title';
import { ISignUp } from '@remote/api/types/auth';
import { ISignIn } from '@remote/api/types/auth';

import styles from './page.module.scss';

const cx = classNames.bind(styles);

function LoginPage() {
const { register, handleSubmit } = useForm<ISignUp>();
const { register, handleSubmit } = useForm<ISignIn>();

// eslint-disable-next-line @typescript-eslint/require-await
const onSubmit = async () => {
Expand All @@ -31,8 +31,18 @@ function LoginPage() {
<Spacing size={30} />
<form onSubmit={handleSubmit(onSubmit)}>
<Title title="로그인" size={20} />
<TextField label="아이디" required placeholder="아이디" {...register('id')} />
<TextField label="비밀번호" required placeholder="비밀번호" {...register('password')} />
<TextField
label="아이디"
required
placeholder="아이디"
{...register('id')}
/>
<TextField
label="비밀번호"
required
placeholder="비밀번호"
{...register('password')}
/>
<Spacing size={30} />
<Button type="submit" size="medium" full>
로그인
Expand All @@ -41,19 +51,13 @@ function LoginPage() {
</form>
<ul className={cx('linkContainer')}>
<li>
<Link href="/">
<span>회원가입</span>
</Link>
<Link href="/">회원가입</Link>
</li>
<li>
<Link href="/">
<span>아이디 찾기</span>
</Link>
<Link href="/">아이디 찾기</Link>
</li>
<li>
<Link href="/">
<span>비밀번호 찾기</span>
</Link>
<Link href="/">비밀번호 찾기</Link>
</li>
</ul>
</main>
Expand Down

0 comments on commit b507d6b

Please sign in to comment.