Skip to content

Commit e7e5efa

Browse files
committed
feat: 프로필 페이지 추가
1 parent 4e8354b commit e7e5efa

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/pages/ProfilePage.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import { useGetProfile } from '@/react-queries/userGetProfile';
22

33
const ProfilePage = () => {
4-
const { data: user, error, isLoading, isError } = useGetProfile();
5-
console.log(user)
4+
const { data: user, error, isLoading, isError } = useGetProfile();
5+
console.log(user);
66

7-
if (isError) {
8-
// TODO: 추후 에러 처리
9-
console.error(error);
10-
}
7+
if (isError) {
8+
// TODO: 추후 에러 처리
9+
console.error(error);
10+
}
1111

12-
return (
13-
<div>
14-
{isLoading && <span className="loading" />}
15-
<h1>프로필</h1>
16-
<p>여기는 프로필 페이지입니다.</p>
17-
</div>
18-
);
19-
};
20-
21-
export default ProfilePage;
12+
return (
13+
<div>
14+
{isLoading && <span className="loading" />}
15+
<h1>프로필</h1>
16+
<p>여기는 프로필 페이지입니다.</p>
17+
</div>
18+
);
19+
};
20+
21+
export default ProfilePage;

0 commit comments

Comments
 (0)