diff --git a/src/components/profile/Following.jsx b/src/components/profile/Following.jsx index a55d2424..13a2dcee 100644 --- a/src/components/profile/Following.jsx +++ b/src/components/profile/Following.jsx @@ -1,63 +1,67 @@ -import React from 'react'; -import { CardDecorator } from '../design/CardDecorator'; -import Link from 'next/link'; -import Skeleton from 'react-loading-skeleton'; -import { Tooltip } from 'react-tooltip'; -import FriendCard from '../social/FriendCard'; +import React from 'react' +import { CardDecorator } from '../design/CardDecorator' +import Link from 'next/link' +import Skeleton from 'react-loading-skeleton' +import { Tooltip } from 'react-tooltip' +import FriendCard from '../social/FriendCard' const Following = ({ followings, pageData, userData }) => { - const { user, ownUser } = userData; - const { setDisplayMode, page, totalPages, prevPage, nextPage } = pageData; + const { user, ownUser } = userData + const { setDisplayMode, page, totalPages, prevPage, nextPage } = pageData return ( <> -
- You have no friends yet. -
- )} + {followings.length > 0 + ? ( ++ You have no friends yet. +
+ )} +{user && user.username} is not following anyone yet.
- )} + ) + : ( +{user && user.username} is not following anyone yet.
+ )} {totalPages > 0 && ( -