mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
* Make Jitsi WCAG 2.1 compliant * Fixed password form keypress handling * Added keypress handler to name form * Removed unneccessary dom query * Fixed mouse hove style * Removed obsolete css rules * accessibilty background feature * Merge remote-tracking branch 'upstream/master' into nic/fix/merge-conflicts * fix error * add german translation * Fixed merge issue * Add id prop back to device selection * Fixed lockfile Co-authored-by: AHMAD KADRI <52747422+ahmadkadri@users.noreply.github.com>
33 lines
984 B
JavaScript
33 lines
984 B
JavaScript
// @flow
|
|
|
|
import React, { useCallback } from 'react';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { useDispatch } from 'react-redux';
|
|
|
|
import { createToolbarEvent, sendAnalytics } from '../../analytics';
|
|
import { Icon, IconInviteMore } from '../../base/icons';
|
|
import { beginAddPeople } from '../../invite';
|
|
|
|
import { ParticipantInviteButton } from './styled';
|
|
|
|
export const InviteButton = () => {
|
|
const dispatch = useDispatch();
|
|
const { t } = useTranslation();
|
|
|
|
const onInvite = useCallback(() => {
|
|
sendAnalytics(createToolbarEvent('invite'));
|
|
dispatch(beginAddPeople());
|
|
}, [ dispatch ]);
|
|
|
|
return (
|
|
<ParticipantInviteButton
|
|
aria-label = { t('participantsPane.actions.invite') }
|
|
onClick = { onInvite }>
|
|
<Icon
|
|
size = { 20 }
|
|
src = { IconInviteMore } />
|
|
<span>{t('participantsPane.actions.invite')}</span>
|
|
</ParticipantInviteButton>
|
|
);
|
|
};
|