diff --git a/src/components/organisms/FriendListItem.tsx b/src/components/organisms/FriendListItem.tsx
index 852733c..7e39dc9 100644
--- a/src/components/organisms/FriendListItem.tsx
+++ b/src/components/organisms/FriendListItem.tsx
@@ -14,9 +14,8 @@ const FriendListItem: React.FC<{
return (
- {/* TODO profile img ENUM res 데이터로 교체 */}
= ({
const [selectedFriendIds, setSelectedFriendIds] = useState([]);
const {
data: friendsData,
- fetchNextPage: friendsNextPage,
+ fetchNextPage: fetchFriendsNextPage,
isFetchingNextPage: isFetchingfriendsNextPage,
refetch: friendsRefetch,
} = useGetFriendships({
@@ -53,7 +53,7 @@ const FriendListTemplate: React.FC<{ possibleDelete: boolean }> = ({
const onIntersect: IntersectionObserverCallback = ([entry]) => {
if (entry.isIntersecting) {
- void friendsNextPage();
+ void fetchFriendsNextPage();
}
};
@@ -116,18 +116,23 @@ const FriendListTemplate: React.FC<{ possibleDelete: boolean }> = ({
/>
)),
)}
+ {isFetchingfriendsNextPage ? (
+
+ ) : (
+
+ )}
- {isFetchingfriendsNextPage ?
:
}
-
-
-
-
+ {possibleDelete ? (
+
+
+
+ ) : null}