chore: only show invites section if there are incoming invites
This commit is contained in:
@@ -120,16 +120,18 @@ const Vaults = () => {
|
|||||||
<EditVaultModal onCloseDialog={closeVaultModal} />
|
<EditVaultModal onCloseDialog={closeVaultModal} />
|
||||||
</ModalOverlay>
|
</ModalOverlay>
|
||||||
|
|
||||||
<PreferencesGroup>
|
{invites.length > 0 && (
|
||||||
<PreferencesSegment>
|
<PreferencesGroup>
|
||||||
<Title>Incoming Invites</Title>
|
<PreferencesSegment>
|
||||||
<div className="my-2 flex flex-col gap-3.5">
|
<Title>Incoming Invites</Title>
|
||||||
{invites.map((invite) => {
|
<div className="my-2 flex flex-col gap-3.5">
|
||||||
return <InviteItem inviteRecord={invite} key={invite.invite.uuid} />
|
{invites.map((invite) => {
|
||||||
})}
|
return <InviteItem inviteRecord={invite} key={invite.invite.uuid} />
|
||||||
</div>
|
})}
|
||||||
</PreferencesSegment>
|
</div>
|
||||||
</PreferencesGroup>
|
</PreferencesSegment>
|
||||||
|
</PreferencesGroup>
|
||||||
|
)}
|
||||||
|
|
||||||
<PreferencesGroup>
|
<PreferencesGroup>
|
||||||
<PreferencesSegment>
|
<PreferencesSegment>
|
||||||
|
|||||||
Reference in New Issue
Block a user