mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
add proper placeholder for invalid invite
This commit is contained in:
@@ -74,13 +74,22 @@ export default function EmbedInvite(props: Props) {
|
|||||||
}, [client, code, invite, status]);
|
}, [client, code, invite, status]);
|
||||||
|
|
||||||
if (typeof invite === "undefined") {
|
if (typeof invite === "undefined") {
|
||||||
return <EmbedInviteBase>
|
return error ? (
|
||||||
{error ? (
|
<EmbedInviteBase>
|
||||||
<Overline type="error" error={error} />
|
<ServerIcon
|
||||||
) : (
|
size={55}
|
||||||
|
/>
|
||||||
|
<EmbedInviteDetails>
|
||||||
|
<EmbedInviteName>
|
||||||
|
Invalid invite!
|
||||||
|
</EmbedInviteName>
|
||||||
|
</EmbedInviteDetails>
|
||||||
|
</EmbedInviteBase>
|
||||||
|
) : (
|
||||||
|
<EmbedInviteBase>
|
||||||
<Preloader type="ring" />
|
<Preloader type="ring" />
|
||||||
)}
|
</EmbedInviteBase>
|
||||||
</EmbedInviteBase>
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return <EmbedInviteBase>
|
return <EmbedInviteBase>
|
||||||
|
|||||||
Reference in New Issue
Block a user