chore: bug fix cleanup (#4)

This commit is contained in:
hampus-fluxer
2026-01-03 06:44:40 +01:00
committed by GitHub
parent 275126d61b
commit c9c5dceb47
80 changed files with 4639 additions and 3709 deletions

View File

@@ -82,14 +82,12 @@ const ChannelInvitesTab: React.FC<{channelId: string}> = observer(({channelId})
</p>
</div>
{!(fetchStatus === 'success' && invites && invites.length === 0) && (
<div className={styles.buttonGroup}>
<Button small={true} disabled={!canInvite} onClick={handleCreateInvite}>
<Trans>Create Invite</Trans>
</Button>
{canManageGuild && channel?.guildId && <DisableInvitesButton guildId={channel.guildId} />}
</div>
)}
<div className={styles.buttonGroup}>
<Button small={true} disabled={!canInvite || fetchStatus === 'pending'} onClick={handleCreateInvite}>
<Trans>Create Invite</Trans>
</Button>
{canManageGuild && channel?.guildId && <DisableInvitesButton guildId={channel.guildId} />}
</div>
{fetchStatus === 'pending' && (
<div className={styles.spinnerContainer}>