Skip to content

Commit

Permalink
πŸ›  fix : 둜그인 μ™„λ£Œ ν›„ μ°½ 닫을 λ•Œ λ‘λ²ˆλˆŒλŸ¬μ•Ό ν•˜λŠ” ν˜„μƒ μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Feb 20, 2024
1 parent 5d8c929 commit 08ec569
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/(Main)/mypose/components/LoginModal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'use client';

import { useRouter } from 'next/navigation';

import { AppleButton, KakaoButton } from './LoginButton';
import { Modal } from '@/components/Modal';
import { Spacing } from '@/components/Spacing';
Expand All @@ -8,8 +12,10 @@ interface LoginModalProps {
}

export default function LoginModal({ onClose }: LoginModalProps) {
const router = useRouter();

const handleLogin = () => {
window.location.href = KAKAO_AUTHORIZE;
router.replace(KAKAO_AUTHORIZE);
};

return (
Expand Down

0 comments on commit 08ec569

Please sign in to comment.