diff --git a/packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx b/packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx index 52a04deb4b79..9252b949bfa5 100644 --- a/packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx +++ b/packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx @@ -7,6 +7,7 @@ import defaultAvatarImg from '../../../../ui/images/default-avatar.svg'; import { invariant } from '../../../../utils/invariant'; import { SegmentEvent } from '../../../analytics'; import { insomniaFetch } from '../../../insomniaFetch'; +import { Icon } from '../../icon'; import { InviteForm } from './organization-invite-form'; import { OrganizationMemberRolesSelector, type Role, SELECTOR_TYPE } from './organization-member-roles-selector'; @@ -123,14 +124,16 @@ const InviteModal: FC<{ /> - {membersInCurrentPage.length === 0 ? ( -

- {queryStringRef.current - ? `No member found for the search "${queryStringRef.current}"` - : 'No member' - } -

- ) : ( + {loading ? + () : + (membersInCurrentPage.length === 0 ? ( +

+ {queryStringRef.current + ? `No member found for the search "${queryStringRef.current}"` + : 'No member' + } +

+ ) : ( - )} + )) + } {(hasPrevPage || hasNextPage) && (