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:
Calinteodor
2021-08-15 08:27:18 +03:00
committed by GitHub
parent 8c82c0f56e
commit e40d4a48b8
6 changed files with 30 additions and 12 deletions

View File

@@ -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 }