Skip to content

Commit

Permalink
feat: ProfileUser에 SkeletonProfileUser 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Legitgoons committed May 30, 2024
1 parent 4f19f73 commit 83ff013
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/widgets/profile-user/ui/ProfileUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useGetUser } from '../api';
import { ProfileCount } from './ProfileCount';
import './ProfileUser.scss';
import { ProfileUserImage } from './ProfileUserImage';
import { SkeletonProfileUser } from './SkeletonProfileUser';

interface ProfileUserProps {
userId: number;
Expand All @@ -15,7 +16,12 @@ export const ProfileUser = ({ userId, isOwner }: ProfileUserProps) => {
const { data, isLoading, isError, refetchUser } = useGetUser(userId);

if (isLoading) {
return <div>스켈레톤 들어갈곳</div>;
return (
<>
<PageHeader page='' prevPageLink='/' />
<SkeletonProfileUser />
</>
);
}

if (isError || !data) {
Expand Down

0 comments on commit 83ff013

Please sign in to comment.