From b169e571931f458cbb9186e7184b0a8c8a898a30 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Wed, 5 Mar 2025 21:45:10 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5(frontend)=20delete=20accept/deny?= =?UTF-8?q?=20all=20group=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../Participants/ParticipantsList.tsx | 29 +++---------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/src/frontend/src/features/rooms/livekit/components/controls/Participants/ParticipantsList.tsx b/src/frontend/src/features/rooms/livekit/components/controls/Participants/ParticipantsList.tsx index d7759632..61123fa7 100644 --- a/src/frontend/src/features/rooms/livekit/components/controls/Participants/ParticipantsList.tsx +++ b/src/frontend/src/features/rooms/livekit/components/controls/Participants/ParticipantsList.tsx @@ -1,13 +1,12 @@ import { css } from '@/styled-system/css' import { useParticipants } from '@livekit/components-react' -import { Button, Div, H } from '@/primitives' +import { Div, H } from '@/primitives' import { useTranslation } from 'react-i18next' import { ParticipantListItem } from '../../controls/Participants/ParticipantListItem' import { ParticipantsCollapsableList } from '../../controls/Participants/ParticipantsCollapsableList' import { HandRaisedListItem } from '../../controls/Participants/HandRaisedListItem' import { LowerAllHandsButton } from '../../controls/Participants/LowerAllHandsButton' -import { HStack } from '@/styled-system/jsx' import { WaitingParticipantListItem } from './WaitingParticipantListItem' import { useWaitingParticipants } from '@/features/rooms/hooks/useWaitingParticipants' import { Participant } from 'livekit-client' @@ -41,11 +40,8 @@ export const ParticipantsList = () => { return data.raised }) - const { - waitingParticipants, - handleParticipantEntry, - handleParticipantsEntry, - } = useWaitingParticipants() + const { waitingParticipants, handleParticipantEntry } = + useWaitingParticipants() // TODO - extract inline styling in a centralized styling file, and avoid magic numbers return ( @@ -74,24 +70,7 @@ export const ParticipantsList = () => { onAction={handleParticipantEntry} /> )} - action={() => ( - - - - - )} + action={() => <>} /> )}