mirror of
https://github.com/RGBCube/cinny
synced 2025-07-30 16:37:46 +00:00
hide decline all public invite button when no invite
This commit is contained in:
parent
206ed33516
commit
59a007419f
1 changed files with 11 additions and 9 deletions
|
@ -439,15 +439,17 @@ function UnknownInvites({ invites, handleNavigate, compact }: UnknownInvitesProp
|
||||||
<Box gap="200" justifyContent="SpaceBetween" alignItems="Center">
|
<Box gap="200" justifyContent="SpaceBetween" alignItems="Center">
|
||||||
<Text size="H4">Public</Text>
|
<Text size="H4">Public</Text>
|
||||||
<Box>
|
<Box>
|
||||||
<Chip
|
{invites.length > 0 && (
|
||||||
variant="SurfaceVariant"
|
<Chip
|
||||||
onClick={declineAll}
|
variant="SurfaceVariant"
|
||||||
before={declining && <Spinner size="50" variant="Secondary" fill="Soft" />}
|
onClick={declineAll}
|
||||||
disabled={declining}
|
before={declining && <Spinner size="50" variant="Secondary" fill="Soft" />}
|
||||||
radii="Pill"
|
disabled={declining}
|
||||||
>
|
radii="Pill"
|
||||||
<Text size="T200">Decline All</Text>
|
>
|
||||||
</Chip>
|
<Text size="T200">Decline All</Text>
|
||||||
|
</Chip>
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
{invites.length > 0 ? (
|
{invites.length > 0 ? (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue