Skip to content

Commit e7e6697

Browse files
committed
feat: 옵션페이지 UI 구현
1 parent f5cff1b commit e7e6697

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

src/main.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import EditGroupSchedule from './pages/EditGroupSchedulePage.tsx';
1111
import AddGroupSchedulePage from './pages/AddGroupSchedulePage.tsx';
1212
import GroupSchedulePage from './pages/GroupSchedulePage.tsx';
1313
import ProfilePage from './pages/ProfilePage.tsx';
14+
import SettingPage from './pages/SettingPage.tsx';
1415

1516
const router = createBrowserRouter([
1617
{
@@ -82,6 +83,10 @@ const router = createBrowserRouter([
8283
path: '/profile',
8384
element: <ProfilePage />,
8485
},
86+
{
87+
path: '/setting',
88+
element: <SettingPage />,
89+
},
8590
],
8691
},
8792
]);

src/pages/SettingPage.tsx

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import { useGetProfile } from '@/react-queries/userGetProfile';
2+
3+
const SettingPage = () => {
4+
const { data: user, error, isLoading, isError } = useGetProfile();
5+
console.log(user);
6+
7+
if (isError) {
8+
// TODO: 추후 에러 처리
9+
console.error(error);
10+
}
11+
12+
return (
13+
<div className="relative flex h-full w-full flex-col items-center justify-center">
14+
{isLoading && <span className="loading" />}
15+
<div className=" absolute top-[70px] inline-flex h-40 flex-col items-start justify-start gap-2.5 border-b border-yellow-500 px-8 py-5">
16+
<div className=" w-44 font-['Inter'] text-base font-semibold leading-normal text-black">정보</div>
17+
<div className=" flex flex-col items-start justify-start gap-2.5">
18+
<div className=" inline-flex w-80 items-start justify-between">
19+
<div className=" text-center font-['Inter'] text-base font-normal leading-normal text-black">버전 정보</div>
20+
<div className=" text-center font-['Inter'] text-base font-normal leading-normal text-black">0.0.1v</div>
21+
</div>
22+
<div className=" inline-flex w-80 items-center justify-between">
23+
<div className=" text-center font-['Inter'] text-base font-normal leading-normal text-black">
24+
이용약관 보기
25+
</div>
26+
<div className=" relative h-5 w-5" />
27+
</div>
28+
<div className=" inline-flex w-80 items-center justify-between">
29+
<div className=" text-center font-['Inter'] text-base font-normal leading-normal text-black">
30+
개인정보 처리방침 보기
31+
</div>
32+
<div className=" relative h-5 w-5" />
33+
</div>
34+
</div>
35+
<div className=" absolute top-[200px] font-['Inter'] text-base font-normal leading-normal text-black">
36+
회원 탈퇴
37+
</div>
38+
</div>
39+
</div>
40+
);
41+
};
42+
43+
export default SettingPage;

0 commit comments

Comments
 (0)