| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- // @flow
-
- import { translate } from '../../base/i18n';
- import { IconInfoCircle } from '../../base/icons';
- import { connect } from '../../base/redux';
- import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
- import { navigateRoot } from '../../mobile/navigation/rootNavigationContainerRef';
- import { screen } from '../../mobile/navigation/routes';
-
- export type Props = AbstractButtonProps & {
-
- /**
- * The redux {@code dispatch} function.
- */
- dispatch: Function,
-
- /**
- * The ID of the entry to be deleted.
- */
- itemId: Object,
-
- /**
- * The function to be used to translate i18n labels.
- */
- t: Function
- };
-
- /**
- * A recent list menu button which opens the dial-in info dialog.
- */
- class ShowDialInInfoButton extends AbstractButton<Props, *> {
- accessibilityLabel = 'welcomepage.info';
- icon = IconInfoCircle;
- label = 'welcomepage.info';
-
- /**
- * Handles clicking / pressing the button.
- *
- * @private
- * @returns {void}
- */
- _handleClick() {
- const { itemId } = this.props;
-
- navigateRoot(screen.dialInSummary, {
- summaryUrl: itemId.url
- });
- }
- }
-
- export default translate(connect()(ShowDialInInfoButton));
|