Skip to content

Commit

Permalink
chore : 로그인/회원가입 이동 버튼 추가 (#401)
Browse files Browse the repository at this point in the history
* style : 라벨첩 상단바 디자인 수정

* fix : 바뀌지 않던 url 수정

* feat : 누락된 삭제 기능 추가

* chore : 카카오 로그인 임시 삭제

* chore : 로그인/회원가입 이동 가능 버튼 추가
  • Loading branch information
cmlim0070 authored Dec 9, 2024
1 parent fcaa8a1 commit 7f348b3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/User/Login/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ export const LoginPage = () => {
회원가입
</button>
</div>
<button onClick={handleKakaoLogin}>
{/* <button onClick={handleKakaoLogin}>
카카오 로그인
</button>
</button> */}
</div>
</div>
</form>
<div className="flex gap-3 flex-">
{/* <div className="flex gap-3 flex-">
<div className="text-caption">회원 정보 찾기</div>
</div>
</div> */}
</div>
);
};
13 changes: 13 additions & 0 deletions src/pages/User/Register/RegisterPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useRegisterForm } from '@/hooks/useRegisterForm';
import { EmailSection } from '@/components/RegisterPage/EmailSection';
import { PasswordSection } from '@/components/RegisterPage/PasswordSection';
import { NicknameSection } from '@/components/RegisterPage/NicknameSection';
import { useNavigate } from 'react-router-dom';

export const RegisterPage = () => {
const {
Expand All @@ -15,12 +16,18 @@ export const RegisterPage = () => {
handleSubmit
} = useRegisterForm();

const navigate = useNavigate();

const handleFormKeyDown = (e: React.KeyboardEvent) => {
if (e.key === 'Enter') {
e.preventDefault();
}
};

const handleNavigateLogin = () => {
navigate('/login');
};

return (
<div className="flex flex-col gap-3 h-full my-[50px]">
<h2 className="font-bold text-2xl ">회원가입</h2>
Expand Down Expand Up @@ -62,6 +69,12 @@ export const RegisterPage = () => {
<button type="submit" className="btn-primary-filled">
가입하기
</button>
<div
onClick={handleNavigateLogin}
className="cursor-pointer"
>
이미 계정을 가지고 있으신가요?
</div>
</form>
</div>
</div>
Expand Down

0 comments on commit 7f348b3

Please sign in to comment.