GroupMembers: showLoading if pending members are being fetched

This commit is contained in:
Alex Gleason 2023-03-22 20:26:53 -05:00
parent 6929975aaa
commit 2674c060ad
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -44,8 +44,8 @@ const GroupMembers: React.FC<IGroupMembers> = (props) => {
scrollKey='group-members'
hasMore={hasNextPage}
onLoadMore={fetchNextPage}
isLoading={isLoading || !group}
showLoading={!group || isLoading && members.length === 0}
isLoading={!group || isLoading}
showLoading={!group || isFetchingPending || isLoading && members.length === 0}
placeholderComponent={PlaceholderAccount}
placeholderCount={3}
className='divide-y divide-solid divide-gray-200 dark:divide-gray-800'