mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-04 06:20:28 +03: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">
 | 
			
		||||
        <Text size="H4">Public</Text>
 | 
			
		||||
        <Box>
 | 
			
		||||
          <Chip
 | 
			
		||||
            variant="SurfaceVariant"
 | 
			
		||||
            onClick={declineAll}
 | 
			
		||||
            before={declining && <Spinner size="50" variant="Secondary" fill="Soft" />}
 | 
			
		||||
            disabled={declining}
 | 
			
		||||
            radii="Pill"
 | 
			
		||||
          >
 | 
			
		||||
            <Text size="T200">Decline All</Text>
 | 
			
		||||
          </Chip>
 | 
			
		||||
          {invites.length > 0 && (
 | 
			
		||||
            <Chip
 | 
			
		||||
              variant="SurfaceVariant"
 | 
			
		||||
              onClick={declineAll}
 | 
			
		||||
              before={declining && <Spinner size="50" variant="Secondary" fill="Soft" />}
 | 
			
		||||
              disabled={declining}
 | 
			
		||||
              radii="Pill"
 | 
			
		||||
            >
 | 
			
		||||
              <Text size="T200">Decline All</Text>
 | 
			
		||||
            </Chip>
 | 
			
		||||
          )}
 | 
			
		||||
        </Box>
 | 
			
		||||
      </Box>
 | 
			
		||||
      {invites.length > 0 ? (
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue