forked from github/plane
update: Handled empty state in adding members to project.
This commit is contained in:
parent
2e638b28b6
commit
f095594be9
@ -162,6 +162,8 @@ const SendProjectInvitationModal: React.FC<Props> = ({ isOpen, setIsOpen, member
|
|||||||
input
|
input
|
||||||
width="w-full"
|
width="w-full"
|
||||||
>
|
>
|
||||||
|
{uninvitedPeople && uninvitedPeople.length > 0 ? (
|
||||||
|
<>
|
||||||
{uninvitedPeople?.map((person) => (
|
{uninvitedPeople?.map((person) => (
|
||||||
<CustomSelect.Option
|
<CustomSelect.Option
|
||||||
key={person.member.id}
|
key={person.member.id}
|
||||||
@ -170,6 +172,12 @@ const SendProjectInvitationModal: React.FC<Props> = ({ isOpen, setIsOpen, member
|
|||||||
{person.member.email}
|
{person.member.email}
|
||||||
</CustomSelect.Option>
|
</CustomSelect.Option>
|
||||||
))}
|
))}
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<div className="text-center text-sm py-5">
|
||||||
|
Invite members to workspace before adding them to a project.
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</CustomSelect>
|
</CustomSelect>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user