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 ( <> -
-
+
+
setDisplayMode('default')} - > + /> -

+

{user && user.username}'s Following

- {followings.length>0 ? ( -
-
-
- {followings.length > 0 ? ( - followings.map((following, index) => ( - - )) - ) : ( -

- You have no friends yet. -

- )} + {followings.length > 0 + ? ( +
+
+
+ {followings.length > 0 + ? ( + followings.map((following, index) => ( + + )) + ) + : ( +

+ You have no friends yet. +

+ )} +
-
- ) : ( -

{user && user.username} is not following anyone yet.

- )} + ) + : ( +

{user && user.username} is not following anyone yet.

+ )} {totalPages > 0 && ( -
+
- + Page {page + 1} of {totalPages}
)}
- - ); -}; + ) +} -export default Following; +export default Following