Skip to content

Commit

Permalink
🛠 fix : 일단 로그인 막아놓기
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Jan 9, 2024
1 parent 8fc3e93 commit 3bcfc53
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/(Sub)/menu/components/LoginSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useRecoilValue } from 'recoil';

import LoginModal from './LoginModal';
import { Icon } from '@/components/Button/Icon';
import { PreparingModal } from '@/components/Modal';
import { useOverlay } from '@/components/Overlay/useOverlay';
import { Spacing } from '@/components/Spacing';
import { ICON } from '@/constants/icon';
Expand All @@ -21,20 +22,21 @@ export default function LoginSection() {
const { open, exit } = useOverlay();

const isLogin = useRecoilValue(isLoginAtom);
const userData = useRecoilValue(userAtom);
// const userData = useRecoilValue(userAtom);
// console.log('🚀 ~ LoginSection ~ userData:', userData);

return (
<section className="py-12">
{isLogin ? (
<div className="bg-violet flex w-full items-center rounded-16 bg-main-violet-base px-20 py-24">
<DefaultProfile />
<Spacing size={16} direction="horizontal" />
<span id="subtitle-1">{userData.email}</span>
<span id="subtitle-1">(개발중) 로그인 완료</span>
</div>
) : (
<button
className="bg-violet flex w-full items-center rounded-16 bg-main-violet-base px-20 py-24"
onClick={() => open(() => <LoginModal onClose={exit} />)}
onClick={() => open(() => <PreparingModal onClose={exit} />)}
>
<DefaultProfile />
<Spacing size={16} direction="horizontal" />
Expand Down

0 comments on commit 3bcfc53

Please sign in to comment.