From 50ddbd6fac6935f25a1ba96ce70b905a4e3871e5 Mon Sep 17 00:00:00 2001 From: gs0428 Date: Tue, 20 Feb 2024 00:34:59 +0900 Subject: [PATCH] =?UTF-8?q?feature-079:=20=EB=A7=88=EC=9D=B4=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EC=8A=A4=EC=BC=88=EB=A0=88=ED=86=A4=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../skeleton/ProfilePageSkeleton.tsx | 30 +++++++- src/pages/ProfilePage.tsx | 56 ++++++++------ src/styles/category/index.style.ts | 4 +- .../skeleton/ProfilePageSkeleton.style.ts | 74 ++++++++++++++++++- 4 files changed, 135 insertions(+), 29 deletions(-) diff --git a/src/components/skeleton/ProfilePageSkeleton.tsx b/src/components/skeleton/ProfilePageSkeleton.tsx index 2bfc0d1..5ed2949 100644 --- a/src/components/skeleton/ProfilePageSkeleton.tsx +++ b/src/components/skeleton/ProfilePageSkeleton.tsx @@ -3,7 +3,35 @@ import * as ProfilePageSkeletonStyles from '@/styles/skeleton/ProfilePageSkeleto const ProfilePageSkeleton = () => { return ( - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); }; diff --git a/src/pages/ProfilePage.tsx b/src/pages/ProfilePage.tsx index c073e4a..3459e8d 100644 --- a/src/pages/ProfilePage.tsx +++ b/src/pages/ProfilePage.tsx @@ -2,9 +2,10 @@ import { useRecoilState, useSetRecoilState } from 'recoil'; import { Account, ServiceSetting } from '@/components/ProfilePage'; import { userInfoState, userTokenState } from '@/stores/user'; import { Wrapper } from '@/styles/ProfilePage'; -import { useState } from 'react'; +import React, { useState } from 'react'; import WithdrawModal from '@/components/modals/WIthdrawModal'; import NoticeModal from '@/components/modals/NoticeModal'; +import ProfilePageSkeleton from '@/components/skeleton/ProfilePageSkeleton'; const ProfilePage = () => { const [reason, setReason] = useState(''); @@ -36,33 +37,40 @@ const ProfilePage = () => { return ( <> - -
-
-
-

내 정보

- 여기서 계정 정보를 관리하세요 -
+ {!userInfo && } + {userInfo && ( + +
+
+
+

내 정보

+ + 여기서 계정 정보를 관리하세요 + +
- {userInfo && ( - <> - + {userInfo && ( + <> + - - - )} -
+ + + )} +
-
- - +
+ + +
-
- + + )} {isLogoutModalOpen && (