forked from abner/for-legacy-web
add proper placeholder for invalid invite
parent
f9bb332605
commit
a10e5100d3
|
|
@ -74,13 +74,22 @@ export default function EmbedInvite(props: Props) {
|
|||
}, [client, code, invite, status]);
|
||||
|
||||
if (typeof invite === "undefined") {
|
||||
return <EmbedInviteBase>
|
||||
{error ? (
|
||||
<Overline type="error" error={error} />
|
||||
) : (
|
||||
return error ? (
|
||||
<EmbedInviteBase>
|
||||
<ServerIcon
|
||||
size={55}
|
||||
/>
|
||||
<EmbedInviteDetails>
|
||||
<EmbedInviteName>
|
||||
Invalid invite!
|
||||
</EmbedInviteName>
|
||||
</EmbedInviteDetails>
|
||||
</EmbedInviteBase>
|
||||
) : (
|
||||
<EmbedInviteBase>
|
||||
<Preloader type="ring" />
|
||||
)}
|
||||
</EmbedInviteBase>
|
||||
</EmbedInviteBase>
|
||||
)
|
||||
}
|
||||
|
||||
return <EmbedInviteBase>
|
||||
|
|
|
|||
Loading…
Reference in New Issue