Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ParticipantsPaneButton.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // @flow
  2. import type { Dispatch } from 'redux';
  3. import { translate } from '../../../base/i18n';
  4. import { IconParticipants } from '../../../base/icons';
  5. import { connect } from '../../../base/redux';
  6. import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
  7. import { navigate }
  8. from '../../../conference/components/native/ConferenceNavigationContainerRef';
  9. import { screen } from '../../../conference/components/native/routes';
  10. type Props = AbstractButtonProps & {
  11. /**
  12. * The redux {@code dispatch} function.
  13. */
  14. dispatch: Dispatch<any>
  15. };
  16. /**
  17. * Implements an {@link AbstractButton} to open the participants panel.
  18. */
  19. class ParticipantsPaneButton extends AbstractButton<Props, *> {
  20. accessibilityLabel = 'toolbar.accessibilityLabel.participants';
  21. icon = IconParticipants;
  22. label = 'toolbar.participants';
  23. /**
  24. * Handles clicking / pressing the button, and opens the participants panel.
  25. *
  26. * @private
  27. * @returns {void}
  28. */
  29. _handleClick() {
  30. return navigate(screen.conference.participants);
  31. }
  32. }
  33. export default translate(connect()(ParticipantsPaneButton));