From c82612113c78eab245daccb4bdc7c207d5f63623 Mon Sep 17 00:00:00 2001 From: yun-cheng Date: Fri, 22 Mar 2024 22:19:51 +0800 Subject: [PATCH] fix(FollowSection): show skeleton only while fetching data --- src/components/follow/FollowSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/follow/FollowSection.tsx b/src/components/follow/FollowSection.tsx index b99af65..2867987 100644 --- a/src/components/follow/FollowSection.tsx +++ b/src/components/follow/FollowSection.tsx @@ -47,7 +47,7 @@ export default function FollowSection(): ReactElement { className='w-full overflow-y-auto py-4 pl-4 pr-[9px]' > {data?.map(user => )} - {!isFetching && + {!!isFetching && Array.from({ length: 10 }).map((_, index) => ( // eslint-disable-next-line react/no-array-index-key