🔥(frontend) delete accept/deny all group actions
Remove group action buttons for accept/deny all participants as they were not included in the designer's mockups. Functionality may be reintroduced in a future iteration based on user feedback. Not necessary for this v1
This commit is contained in:
committed by
aleb_the_flash
parent
5d81ba1e20
commit
b169e57193
@@ -1,13 +1,12 @@
|
|||||||
import { css } from '@/styled-system/css'
|
import { css } from '@/styled-system/css'
|
||||||
import { useParticipants } from '@livekit/components-react'
|
import { useParticipants } from '@livekit/components-react'
|
||||||
|
|
||||||
import { Button, Div, H } from '@/primitives'
|
import { Div, H } from '@/primitives'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import { ParticipantListItem } from '../../controls/Participants/ParticipantListItem'
|
import { ParticipantListItem } from '../../controls/Participants/ParticipantListItem'
|
||||||
import { ParticipantsCollapsableList } from '../../controls/Participants/ParticipantsCollapsableList'
|
import { ParticipantsCollapsableList } from '../../controls/Participants/ParticipantsCollapsableList'
|
||||||
import { HandRaisedListItem } from '../../controls/Participants/HandRaisedListItem'
|
import { HandRaisedListItem } from '../../controls/Participants/HandRaisedListItem'
|
||||||
import { LowerAllHandsButton } from '../../controls/Participants/LowerAllHandsButton'
|
import { LowerAllHandsButton } from '../../controls/Participants/LowerAllHandsButton'
|
||||||
import { HStack } from '@/styled-system/jsx'
|
|
||||||
import { WaitingParticipantListItem } from './WaitingParticipantListItem'
|
import { WaitingParticipantListItem } from './WaitingParticipantListItem'
|
||||||
import { useWaitingParticipants } from '@/features/rooms/hooks/useWaitingParticipants'
|
import { useWaitingParticipants } from '@/features/rooms/hooks/useWaitingParticipants'
|
||||||
import { Participant } from 'livekit-client'
|
import { Participant } from 'livekit-client'
|
||||||
@@ -41,11 +40,8 @@ export const ParticipantsList = () => {
|
|||||||
return data.raised
|
return data.raised
|
||||||
})
|
})
|
||||||
|
|
||||||
const {
|
const { waitingParticipants, handleParticipantEntry } =
|
||||||
waitingParticipants,
|
useWaitingParticipants()
|
||||||
handleParticipantEntry,
|
|
||||||
handleParticipantsEntry,
|
|
||||||
} = useWaitingParticipants()
|
|
||||||
|
|
||||||
// TODO - extract inline styling in a centralized styling file, and avoid magic numbers
|
// TODO - extract inline styling in a centralized styling file, and avoid magic numbers
|
||||||
return (
|
return (
|
||||||
@@ -74,24 +70,7 @@ export const ParticipantsList = () => {
|
|||||||
onAction={handleParticipantEntry}
|
onAction={handleParticipantEntry}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
action={() => (
|
action={() => <></>}
|
||||||
<HStack justify={'center'} width={'100%'}>
|
|
||||||
<Button
|
|
||||||
size="sm"
|
|
||||||
variant="secondaryText"
|
|
||||||
onPress={() => handleParticipantsEntry(false)}
|
|
||||||
>
|
|
||||||
{t('waiting.deny.all')}
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
size="sm"
|
|
||||||
variant="secondaryText"
|
|
||||||
onPress={() => handleParticipantsEntry(true)}
|
|
||||||
>
|
|
||||||
{t('waiting.accept.all')}
|
|
||||||
</Button>
|
|
||||||
</HStack>
|
|
||||||
)}
|
|
||||||
/>
|
/>
|
||||||
</Div>
|
</Div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user