|
| 1 | +import AppBar from '@/components/common/AppBar'; |
| 2 | +import HamburgerButton from '@/components/common/SideBar/HamburgerButton'; |
| 3 | +import { useGetProfile } from '@/react-queries/userGetProfile'; |
| 4 | +import { Link } from 'react-router-dom'; |
| 5 | + |
| 6 | +const SettingPage = () => { |
| 7 | + const { data: user, error, isLoading, isError } = useGetProfile(); |
| 8 | + console.log(user); |
| 9 | + |
| 10 | + if (isError) { |
| 11 | + // TODO: 추후 에러 처리 |
| 12 | + console.error(error); |
| 13 | + } |
| 14 | + |
| 15 | + return ( |
| 16 | + <div className="lg:ml-80"> |
| 17 | + <AppBar backButton={false} IconButton={<HamburgerButton />} /> |
| 18 | + <main className="z-1 relative flex-grow"> |
| 19 | + <div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8"> |
| 20 | + <div> |
| 21 | + <div className="relative flex h-full w-full"> |
| 22 | + {isLoading && <span className="loading" />} |
| 23 | + <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"> |
| 24 | + <div className=" w-44 font-['Inter'] text-base font-semibold leading-normal text-black">정보</div> |
| 25 | + <div className=" flex flex-col items-start justify-start gap-2.5"> |
| 26 | + <div className=" inline-flex w-80 items-start justify-between"> |
| 27 | + <div className="text-center font-['Inter'] text-base font-normal leading-normal text-black"> |
| 28 | + 버전 정보 |
| 29 | + </div> |
| 30 | + <div className=" text-center font-['Inter'] text-base font-normal leading-normal text-black"> |
| 31 | + 0.0.1v |
| 32 | + </div> |
| 33 | + </div> |
| 34 | + <Link to={'/policy/usecondition'}> |
| 35 | + <div className=" inline-flex w-80 items-center justify-between"> |
| 36 | + <div className=" text-center font-['Inter'] text-base font-normal leading-normal text-black hover:underline"> |
| 37 | + 이용약관 보기 |
| 38 | + </div> |
| 39 | + <div className=" relative h-5 w-5" /> |
| 40 | + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="13" height="15"> |
| 41 | + <path |
| 42 | + d="M 2 2 L 18 10 L 2 18" |
| 43 | + fill="none" |
| 44 | + stroke="green" |
| 45 | + stroke-width="3" |
| 46 | + stroke-linecap="round" |
| 47 | + stroke-linejoin="round" |
| 48 | + /> |
| 49 | + </svg> |
| 50 | + </div> |
| 51 | + </Link> |
| 52 | + <Link to={'/policy/personalInfo'}> |
| 53 | + <div className=" inline-flex w-80 items-center justify-between"> |
| 54 | + <div className=" text-center font-['Inter'] text-base font-normal leading-normal text-black hover:underline"> |
| 55 | + 개인정보 처리방침 보기 |
| 56 | + </div> |
| 57 | + <div className=" relative h-5 w-5" /> |
| 58 | + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="13" height="15"> |
| 59 | + <path |
| 60 | + d="M 2 2 L 18 10 L 2 18" |
| 61 | + fill="none" |
| 62 | + stroke="green" |
| 63 | + stroke-width="3" |
| 64 | + stroke-linecap="round" |
| 65 | + stroke-linejoin="round" |
| 66 | + /> |
| 67 | + </svg> |
| 68 | + </div> |
| 69 | + </Link> |
| 70 | + </div> |
| 71 | + <div className=" absolute top-[200px] font-['Inter'] text-base font-normal leading-normal text-black"> |
| 72 | + 회원 탈퇴 |
| 73 | + </div> |
| 74 | + </div> |
| 75 | + </div> |
| 76 | + </div> |
| 77 | + </div> |
| 78 | + </main> |
| 79 | + </div> |
| 80 | + ); |
| 81 | +}; |
| 82 | + |
| 83 | +export default SettingPage; |
0 commit comments