You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ShowDialInInfoButton.native.tsx 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { connect } from 'react-redux';
  2. import { translate } from '../../base/i18n/functions';
  3. import { IconInfoCircle } from '../../base/icons/svg';
  4. import AbstractButton, { IProps as AbstractButtonProps } from '../../base/toolbox/components/AbstractButton';
  5. import { navigateRoot } from '../../mobile/navigation/rootNavigationContainerRef';
  6. import { screen } from '../../mobile/navigation/routes';
  7. export interface IProps extends AbstractButtonProps {
  8. /**
  9. * The ID of the entry to be deleted.
  10. */
  11. itemId: any;
  12. }
  13. /**
  14. * A recent list menu button which opens the dial-in info dialog.
  15. */
  16. class ShowDialInInfoButton extends AbstractButton<IProps> {
  17. accessibilityLabel = 'welcomepage.info';
  18. icon = IconInfoCircle;
  19. label = 'welcomepage.info';
  20. /**
  21. * Handles clicking / pressing the button.
  22. *
  23. * @private
  24. * @returns {void}
  25. */
  26. _handleClick() {
  27. const { itemId } = this.props;
  28. navigateRoot(screen.dialInSummary, {
  29. summaryUrl: itemId.url
  30. });
  31. }
  32. }
  33. export default translate(connect()(ShowDialInInfoButton));