File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import EditGroupSchedule from './pages/EditGroupSchedulePage.tsx';
11
11
import AddGroupSchedulePage from './pages/AddGroupSchedulePage.tsx' ;
12
12
import GroupSchedulePage from './pages/GroupSchedulePage.tsx' ;
13
13
import ProfilePage from './pages/ProfilePage.tsx' ;
14
+ import SettingPage from './pages/SettingPage.tsx' ;
14
15
15
16
const router = createBrowserRouter ( [
16
17
{
@@ -82,6 +83,10 @@ const router = createBrowserRouter([
82
83
path : '/profile' ,
83
84
element : < ProfilePage /> ,
84
85
} ,
86
+ {
87
+ path : '/setting' ,
88
+ element : < SettingPage /> ,
89
+ } ,
85
90
] ,
86
91
} ,
87
92
] ) ;
Original file line number Diff line number Diff line change
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 ;
You can’t perform that action at this time.
0 commit comments