mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 14:37:47 +00:00
feat(av-moderation) id and aria-label updates for av-moderation test (#9592)
* feat(av-moderation) raised hand ask to unmute aria-label * feat(av-moderation) fixed test * feat(av-moderation) added id for notification buttons * feat(av-moderation) fixed lint error * feat(av-moderation) added id for non raised hand participant * feat(av-moderation) added extra id naming for ask to unmute button and participant items * feat(av-moderation) fixed lint errors * feat(av-moderation) changed id to participantID * feat(av-moderation) removed semicolon * squash: Drop unused id for participantItem. * squash: Drop unused fields for raisedHand. Co-authored-by: Дамян Минков <damencho@jitsi.org>
This commit is contained in:
@@ -21,14 +21,19 @@ type Props = {
|
||||
className: string,
|
||||
|
||||
/**
|
||||
* The `data-testid` used for the button.
|
||||
* CSS id of the button.
|
||||
*/
|
||||
testId: string,
|
||||
id?: string,
|
||||
|
||||
/**
|
||||
* The participant.
|
||||
*/
|
||||
participant: Object
|
||||
participant: Object,
|
||||
|
||||
/**
|
||||
* The `data-testid` used for the button.
|
||||
*/
|
||||
testId: string
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -36,7 +41,7 @@ type Props = {
|
||||
*
|
||||
* @returns {React$Element<'button'>}
|
||||
*/
|
||||
export default function({ action, children, className, testId, participant }: Props) {
|
||||
export default function({ action, children, className, participant, id, testId }: Props) {
|
||||
const dispatch = useDispatch();
|
||||
const onClick = useCallback(() => dispatch(action(participant.id)), [ dispatch, participant ]);
|
||||
|
||||
@@ -44,6 +49,7 @@ export default function({ action, children, className, testId, participant }: Pr
|
||||
<button
|
||||
className = { className }
|
||||
data-testid = { testId }
|
||||
id = { id }
|
||||
onClick = { onClick }
|
||||
type = 'button'>
|
||||
{ children }
|
||||
|
||||
Reference in New Issue
Block a user