2017-10-06 20:15:51 +00:00
|
|
|
// @flow
|
|
|
|
|
2017-06-14 18:41:22 +00:00
|
|
|
import Avatar from '@atlaskit/avatar';
|
2017-07-12 15:35:00 +00:00
|
|
|
import InlineMessage from '@atlaskit/inline-message';
|
2019-02-26 10:41:57 +00:00
|
|
|
import React from 'react';
|
2019-03-19 15:42:25 +00:00
|
|
|
import type { Dispatch } from 'redux';
|
2017-06-14 18:41:22 +00:00
|
|
|
|
2019-02-26 10:41:57 +00:00
|
|
|
import { createInviteDialogEvent, sendAnalytics } from '../../../../analytics';
|
|
|
|
import { Dialog, hideDialog } from '../../../../base/dialog';
|
|
|
|
import { translate, translateToHTML } from '../../../../base/i18n';
|
|
|
|
import { getLocalParticipant } from '../../../../base/participants';
|
|
|
|
import { MultiSelectAutocomplete } from '../../../../base/react';
|
2019-03-21 16:38:29 +00:00
|
|
|
import { connect } from '../../../../base/redux';
|
2017-06-14 18:41:22 +00:00
|
|
|
|
2019-02-26 10:41:57 +00:00
|
|
|
import AbstractAddPeopleDialog, {
|
|
|
|
type Props as AbstractProps,
|
|
|
|
type State,
|
|
|
|
_mapStateToProps as _abstractMapStateToProps
|
|
|
|
} from '../AbstractAddPeopleDialog';
|
2018-03-12 19:23:40 +00:00
|
|
|
|
2017-07-12 15:35:00 +00:00
|
|
|
declare var interfaceConfig: Object;
|
|
|
|
|
2017-06-14 18:41:22 +00:00
|
|
|
/**
|
2018-10-30 05:02:23 +00:00
|
|
|
* The type of the React {@code Component} props of {@link AddPeopleDialog}.
|
2017-06-14 18:41:22 +00:00
|
|
|
*/
|
2019-02-26 10:41:57 +00:00
|
|
|
type Props = AbstractProps & {
|
2018-10-30 05:02:23 +00:00
|
|
|
|
2017-06-14 18:41:22 +00:00
|
|
|
/**
|
2018-10-30 05:02:23 +00:00
|
|
|
* The {@link JitsiMeetConference} which will be used to invite "room"
|
|
|
|
* participants through the SIP Jibri (Video SIP gateway).
|
2017-06-14 18:41:22 +00:00
|
|
|
*/
|
2018-10-30 05:02:23 +00:00
|
|
|
_conference: Object,
|
2017-09-21 20:24:56 +00:00
|
|
|
|
2018-10-30 05:02:23 +00:00
|
|
|
/**
|
|
|
|
* Whether to show a footer text after the search results as a last element.
|
|
|
|
*/
|
|
|
|
_footerTextEnabled: boolean,
|
2018-06-15 18:10:22 +00:00
|
|
|
|
2018-10-30 05:02:23 +00:00
|
|
|
/**
|
|
|
|
* The redux {@code dispatch} function.
|
|
|
|
*/
|
2019-03-19 15:42:25 +00:00
|
|
|
dispatch: Dispatch<any>,
|
2017-11-21 22:45:14 +00:00
|
|
|
|
2018-10-30 05:02:23 +00:00
|
|
|
/**
|
|
|
|
* Invoked to obtain translated strings.
|
|
|
|
*/
|
|
|
|
t: Function,
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The dialog that allows to invite people to the call.
|
|
|
|
*/
|
2019-02-26 10:41:57 +00:00
|
|
|
class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {
|
2017-10-06 20:15:51 +00:00
|
|
|
_multiselect = null;
|
|
|
|
|
2018-03-12 19:23:40 +00:00
|
|
|
_resourceClient: Object;
|
2017-10-06 20:15:51 +00:00
|
|
|
|
|
|
|
state = {
|
|
|
|
addToCallError: false,
|
|
|
|
addToCallInProgress: false,
|
2018-03-22 23:22:26 +00:00
|
|
|
inviteItems: []
|
2017-10-06 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
2017-06-14 18:41:22 +00:00
|
|
|
/**
|
|
|
|
* Initializes a new {@code AddPeopleDialog} instance.
|
|
|
|
*
|
|
|
|
* @param {Object} props - The read-only properties with which the new
|
|
|
|
* instance is to be initialized.
|
|
|
|
*/
|
2018-10-30 05:02:23 +00:00
|
|
|
constructor(props: Props) {
|
2017-06-14 18:41:22 +00:00
|
|
|
super(props);
|
|
|
|
|
2017-10-06 20:15:51 +00:00
|
|
|
// Bind event handlers so they are only bound once per instance.
|
2018-03-12 19:23:40 +00:00
|
|
|
this._onItemSelected = this._onItemSelected.bind(this);
|
2017-06-14 18:41:22 +00:00
|
|
|
this._onSelectionChange = this._onSelectionChange.bind(this);
|
|
|
|
this._onSubmit = this._onSubmit.bind(this);
|
2018-03-12 19:23:40 +00:00
|
|
|
this._parseQueryResults = this._parseQueryResults.bind(this);
|
2017-06-14 18:41:22 +00:00
|
|
|
this._setMultiSelectElement = this._setMultiSelectElement.bind(this);
|
2018-03-12 19:23:40 +00:00
|
|
|
|
|
|
|
this._resourceClient = {
|
|
|
|
makeQuery: this._query,
|
|
|
|
parseResults: this._parseQueryResults
|
|
|
|
};
|
2017-06-14 18:41:22 +00:00
|
|
|
}
|
|
|
|
|
2018-03-23 00:53:16 +00:00
|
|
|
/**
|
|
|
|
* Sends an analytics event to record the dialog has been shown.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
componentDidMount() {
|
|
|
|
sendAnalytics(createInviteDialogEvent(
|
|
|
|
'invite.dialog.opened', 'dialog'));
|
|
|
|
}
|
|
|
|
|
2017-06-14 18:41:22 +00:00
|
|
|
/**
|
|
|
|
* React Component method that executes once component is updated.
|
|
|
|
*
|
2018-10-30 05:02:23 +00:00
|
|
|
* @param {Object} prevProps - The state object before the update.
|
2017-06-14 18:41:22 +00:00
|
|
|
* @param {Object} prevState - The state object before the update.
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
2018-10-30 05:02:23 +00:00
|
|
|
componentDidUpdate(prevProps, prevState) {
|
2017-06-14 18:41:22 +00:00
|
|
|
/**
|
|
|
|
* Clears selected items from the multi select component on successful
|
|
|
|
* invite.
|
|
|
|
*/
|
|
|
|
if (prevState.addToCallError
|
2017-10-06 20:15:51 +00:00
|
|
|
&& !this.state.addToCallInProgress
|
|
|
|
&& !this.state.addToCallError
|
|
|
|
&& this._multiselect) {
|
2018-03-12 19:23:40 +00:00
|
|
|
this._multiselect.setSelectedItems([]);
|
2017-06-14 18:41:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-23 00:53:16 +00:00
|
|
|
/**
|
|
|
|
* Sends an analytics event to record the dialog has been closed.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
componentWillUnmount() {
|
|
|
|
sendAnalytics(createInviteDialogEvent(
|
|
|
|
'invite.dialog.closed', 'dialog'));
|
|
|
|
}
|
|
|
|
|
2017-06-14 18:41:22 +00:00
|
|
|
/**
|
|
|
|
* Renders the content of this component.
|
|
|
|
*
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
|
|
|
render() {
|
2019-02-26 10:41:57 +00:00
|
|
|
const {
|
|
|
|
_addPeopleEnabled,
|
|
|
|
_dialOutEnabled,
|
|
|
|
_footerTextEnabled,
|
|
|
|
t
|
|
|
|
} = this.props;
|
2018-03-12 19:23:40 +00:00
|
|
|
let isMultiSelectDisabled = this.state.addToCallInProgress || false;
|
|
|
|
let placeholder;
|
|
|
|
let loadingMessage;
|
|
|
|
let noMatches;
|
2018-06-15 18:10:22 +00:00
|
|
|
let footerText;
|
2018-03-12 19:23:40 +00:00
|
|
|
|
2019-02-26 10:41:57 +00:00
|
|
|
if (_addPeopleEnabled && _dialOutEnabled) {
|
2018-03-12 19:23:40 +00:00
|
|
|
loadingMessage = 'addPeople.loading';
|
|
|
|
noMatches = 'addPeople.noResults';
|
|
|
|
placeholder = 'addPeople.searchPeopleAndNumbers';
|
2019-02-26 10:41:57 +00:00
|
|
|
} else if (_addPeopleEnabled) {
|
2018-03-12 19:23:40 +00:00
|
|
|
loadingMessage = 'addPeople.loadingPeople';
|
|
|
|
noMatches = 'addPeople.noResults';
|
|
|
|
placeholder = 'addPeople.searchPeople';
|
2019-02-26 10:41:57 +00:00
|
|
|
} else if (_dialOutEnabled) {
|
2018-03-12 19:23:40 +00:00
|
|
|
loadingMessage = 'addPeople.loadingNumber';
|
|
|
|
noMatches = 'addPeople.noValidNumbers';
|
|
|
|
placeholder = 'addPeople.searchNumbers';
|
|
|
|
} else {
|
|
|
|
isMultiSelectDisabled = true;
|
|
|
|
noMatches = 'addPeople.noResults';
|
|
|
|
placeholder = 'addPeople.disabled';
|
|
|
|
}
|
|
|
|
|
2018-06-15 18:10:22 +00:00
|
|
|
if (_footerTextEnabled) {
|
|
|
|
footerText = {
|
|
|
|
content: <div className = 'footer-text-wrap'>
|
|
|
|
<div>
|
|
|
|
<span className = 'footer-telephone-icon'>
|
2019-04-25 18:05:35 +00:00
|
|
|
<i className = 'icon-phone' />
|
2018-06-15 18:10:22 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{ translateToHTML(t, 'addPeople.footerText') }
|
|
|
|
</div>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-06-14 18:41:22 +00:00
|
|
|
return (
|
|
|
|
<Dialog
|
|
|
|
okDisabled = { this._isAddDisabled() }
|
2019-03-06 17:23:53 +00:00
|
|
|
okKey = 'addPeople.add'
|
2017-06-14 18:41:22 +00:00
|
|
|
onSubmit = { this._onSubmit }
|
|
|
|
titleKey = 'addPeople.title'
|
2018-03-12 19:23:40 +00:00
|
|
|
width = 'medium'>
|
|
|
|
<div className = 'add-people-form-wrap'>
|
|
|
|
{ this._renderErrorMessage() }
|
|
|
|
<MultiSelectAutocomplete
|
2018-06-15 18:10:22 +00:00
|
|
|
footer = { footerText }
|
2018-03-12 19:23:40 +00:00
|
|
|
isDisabled = { isMultiSelectDisabled }
|
|
|
|
loadingMessage = { t(loadingMessage) }
|
|
|
|
noMatchesFound = { t(noMatches) }
|
|
|
|
onItemSelected = { this._onItemSelected }
|
|
|
|
onSelectionChange = { this._onSelectionChange }
|
|
|
|
placeholder = { t(placeholder) }
|
|
|
|
ref = { this._setMultiSelectElement }
|
|
|
|
resourceClient = { this._resourceClient }
|
|
|
|
shouldFitContainer = { true }
|
|
|
|
shouldFocus = { true } />
|
|
|
|
</div>
|
2017-06-14 18:41:22 +00:00
|
|
|
</Dialog>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2019-02-26 10:41:57 +00:00
|
|
|
_invite: Array<Object> => Promise<*>
|
2017-06-14 18:41:22 +00:00
|
|
|
|
2019-02-26 10:41:57 +00:00
|
|
|
_isAddDisabled: () => boolean;
|
2017-06-14 18:41:22 +00:00
|
|
|
|
2018-03-12 19:23:40 +00:00
|
|
|
_onItemSelected: (Object) => Object;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Callback invoked when a selection has been made but before it has been
|
|
|
|
* set as selected.
|
|
|
|
*
|
|
|
|
* @param {Object} item - The item that has just been selected.
|
|
|
|
* @private
|
|
|
|
* @returns {Object} The item to display as selected in the input.
|
|
|
|
*/
|
|
|
|
_onItemSelected(item) {
|
|
|
|
if (item.item.type === 'phone') {
|
|
|
|
item.content = item.item.number;
|
|
|
|
}
|
|
|
|
|
|
|
|
return item;
|
|
|
|
}
|
|
|
|
|
2017-10-06 20:15:51 +00:00
|
|
|
_onSelectionChange: (Map<*, *>) => void;
|
|
|
|
|
2017-06-14 18:41:22 +00:00
|
|
|
/**
|
|
|
|
* Handles a selection change.
|
|
|
|
*
|
|
|
|
* @param {Map} selectedItems - The list of selected items.
|
|
|
|
* @private
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
_onSelectionChange(selectedItems) {
|
|
|
|
this.setState({
|
2018-03-12 19:23:40 +00:00
|
|
|
inviteItems: selectedItems
|
2017-06-14 18:41:22 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2017-10-06 20:15:51 +00:00
|
|
|
_onSubmit: () => void;
|
|
|
|
|
2017-06-14 18:41:22 +00:00
|
|
|
/**
|
2019-02-26 10:41:57 +00:00
|
|
|
* Submits the selection for inviting.
|
2017-06-14 18:41:22 +00:00
|
|
|
*
|
|
|
|
* @private
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
_onSubmit() {
|
2018-04-25 11:06:46 +00:00
|
|
|
const { inviteItems } = this.state;
|
2018-05-03 01:20:31 +00:00
|
|
|
const invitees = inviteItems.map(({ item }) => item);
|
2018-03-23 00:53:16 +00:00
|
|
|
|
2019-02-26 10:41:57 +00:00
|
|
|
this._invite(invitees)
|
2018-03-28 00:49:22 +00:00
|
|
|
.then(invitesLeftToSend => {
|
2018-03-12 19:23:40 +00:00
|
|
|
if (invitesLeftToSend.length) {
|
2018-05-03 01:20:31 +00:00
|
|
|
const unsentInviteIDs
|
|
|
|
= invitesLeftToSend.map(invitee =>
|
2019-06-21 12:17:47 +00:00
|
|
|
invitee.id || invitee.user_id || invitee.number);
|
2018-05-03 01:20:31 +00:00
|
|
|
const itemsToSelect
|
|
|
|
= inviteItems.filter(({ item }) =>
|
2019-06-21 12:17:47 +00:00
|
|
|
unsentInviteIDs.includes(item.id || item.user_id || item.number));
|
2018-03-28 00:49:22 +00:00
|
|
|
|
2018-03-12 19:23:40 +00:00
|
|
|
if (this._multiselect) {
|
2018-03-28 00:49:22 +00:00
|
|
|
this._multiselect.setSelectedItems(itemsToSelect);
|
2018-03-12 19:23:40 +00:00
|
|
|
}
|
2019-02-26 10:41:57 +00:00
|
|
|
} else {
|
|
|
|
this.props.dispatch(hideDialog());
|
2018-03-12 19:23:40 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2019-03-19 15:42:25 +00:00
|
|
|
_parseQueryResults: (?Array<Object>) => Array<Object>;
|
2018-03-12 19:23:40 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Processes results from requesting available numbers and people by munging
|
|
|
|
* each result into a format {@code MultiSelectAutocomplete} can use for
|
|
|
|
* display.
|
|
|
|
*
|
|
|
|
* @param {Array} response - The response object from the server for the
|
|
|
|
* query.
|
|
|
|
* @private
|
|
|
|
* @returns {Object[]} Configuration objects for items to display in the
|
|
|
|
* search autocomplete.
|
|
|
|
*/
|
|
|
|
_parseQueryResults(response = []) {
|
|
|
|
const { t } = this.props;
|
|
|
|
const users = response.filter(item => item.type !== 'phone');
|
|
|
|
const userDisplayItems = users.map(user => {
|
|
|
|
return {
|
|
|
|
content: user.name,
|
|
|
|
elemBefore: <Avatar
|
2018-04-16 20:58:20 +00:00
|
|
|
size = 'small'
|
2018-03-12 19:23:40 +00:00
|
|
|
src = { user.avatar } />,
|
|
|
|
item: user,
|
|
|
|
tag: {
|
|
|
|
elemBefore: <Avatar
|
|
|
|
size = 'xsmall'
|
|
|
|
src = { user.avatar } />
|
|
|
|
},
|
2019-06-21 12:17:47 +00:00
|
|
|
value: user.id || user.user_id
|
2018-03-12 19:23:40 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
const numbers = response.filter(item => item.type === 'phone');
|
|
|
|
const telephoneIcon = this._renderTelephoneIcon();
|
|
|
|
|
|
|
|
const numberDisplayItems = numbers.map(number => {
|
|
|
|
const numberNotAllowedMessage
|
|
|
|
= number.allowed ? '' : t('addPeople.countryNotSupported');
|
|
|
|
const countryCodeReminder = number.showCountryCodeReminder
|
|
|
|
? t('addPeople.countryReminder') : '';
|
|
|
|
const description
|
|
|
|
= `${numberNotAllowedMessage} ${countryCodeReminder}`.trim();
|
|
|
|
|
|
|
|
return {
|
|
|
|
filterValues: [
|
|
|
|
number.originalEntry,
|
|
|
|
number.number
|
|
|
|
],
|
|
|
|
content: t('addPeople.telephone', { number: number.number }),
|
|
|
|
description,
|
|
|
|
isDisabled: !number.allowed,
|
|
|
|
elemBefore: telephoneIcon,
|
|
|
|
item: number,
|
|
|
|
tag: {
|
|
|
|
elemBefore: telephoneIcon
|
|
|
|
},
|
|
|
|
value: number.number
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
return [
|
|
|
|
...userDisplayItems,
|
|
|
|
...numberDisplayItems
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
_query: (string) => Promise<Array<Object>>;
|
|
|
|
|
2017-07-12 15:35:00 +00:00
|
|
|
/**
|
|
|
|
* Renders the error message if the add doesn't succeed.
|
|
|
|
*
|
|
|
|
* @private
|
2017-10-06 20:15:51 +00:00
|
|
|
* @returns {ReactElement|null}
|
2017-07-12 15:35:00 +00:00
|
|
|
*/
|
|
|
|
_renderErrorMessage() {
|
|
|
|
if (!this.state.addToCallError) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
const { t } = this.props;
|
|
|
|
const supportString = t('inlineDialogFailure.supportMsg');
|
|
|
|
const supportLink = interfaceConfig.SUPPORT_URL;
|
|
|
|
const supportLinkContent
|
2018-08-06 16:09:32 +00:00
|
|
|
= (
|
2017-07-12 15:35:00 +00:00
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
{ supportString.padEnd(supportString.length + 1) }
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
<a
|
|
|
|
href = { supportLink }
|
|
|
|
rel = 'noopener noreferrer'
|
|
|
|
target = '_blank'>
|
|
|
|
{ t('inlineDialogFailure.support') }
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<span>.</span>
|
|
|
|
</span>
|
|
|
|
);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className = 'modal-dialog-form-error'>
|
|
|
|
<InlineMessage
|
|
|
|
title = { t('addPeople.failedToAdd') }
|
|
|
|
type = 'error'>
|
|
|
|
{ supportLinkContent }
|
|
|
|
</InlineMessage>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2017-10-06 20:15:51 +00:00
|
|
|
/**
|
2018-03-12 19:23:40 +00:00
|
|
|
* Renders a telephone icon.
|
2017-10-06 20:15:51 +00:00
|
|
|
*
|
|
|
|
* @private
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
2018-03-12 19:23:40 +00:00
|
|
|
_renderTelephoneIcon() {
|
2017-10-06 20:15:51 +00:00
|
|
|
return (
|
2018-03-12 19:23:40 +00:00
|
|
|
<span className = 'add-telephone-icon'>
|
2019-04-25 18:05:35 +00:00
|
|
|
<i className = 'icon-phone' />
|
2018-03-12 19:23:40 +00:00
|
|
|
</span>
|
2017-10-06 20:15:51 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2017-10-24 22:26:56 +00:00
|
|
|
_setMultiSelectElement: (React$ElementRef<*> | null) => mixed;
|
2017-10-06 20:15:51 +00:00
|
|
|
|
2017-06-14 18:41:22 +00:00
|
|
|
/**
|
|
|
|
* Sets the instance variable for the multi select component
|
|
|
|
* element so it can be accessed directly.
|
|
|
|
*
|
|
|
|
* @param {Object} element - The DOM element for the component's dialog.
|
|
|
|
* @private
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
_setMultiSelectElement(element) {
|
|
|
|
this._multiselect = element;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Maps (parts of) the Redux state to the associated
|
|
|
|
* {@code AddPeopleDialog}'s props.
|
|
|
|
*
|
|
|
|
* @param {Object} state - The Redux state.
|
|
|
|
* @private
|
|
|
|
* @returns {{
|
2018-03-12 19:23:40 +00:00
|
|
|
* _dialOutAuthUrl: string,
|
2017-09-27 21:23:31 +00:00
|
|
|
* _jwt: string,
|
2018-03-12 19:23:40 +00:00
|
|
|
* _peopleSearchQueryTypes: Array<string>,
|
2017-09-27 21:23:31 +00:00
|
|
|
* _peopleSearchUrl: string
|
2017-06-14 18:41:22 +00:00
|
|
|
* }}
|
|
|
|
*/
|
|
|
|
function _mapStateToProps(state) {
|
2017-08-30 19:34:42 +00:00
|
|
|
const {
|
2019-02-26 10:41:57 +00:00
|
|
|
enableFeaturesBasedOnToken
|
2017-10-02 23:08:07 +00:00
|
|
|
} = state['features/base/config'];
|
2018-06-15 18:10:22 +00:00
|
|
|
let footerTextEnabled = false;
|
|
|
|
|
|
|
|
if (enableFeaturesBasedOnToken) {
|
|
|
|
const { features = {} } = getLocalParticipant(state);
|
|
|
|
|
|
|
|
if (String(features['outbound-call']) !== 'true') {
|
|
|
|
footerTextEnabled = true;
|
|
|
|
}
|
|
|
|
}
|
2017-06-14 18:41:22 +00:00
|
|
|
|
|
|
|
return {
|
2019-02-26 10:41:57 +00:00
|
|
|
..._abstractMapStateToProps(state),
|
|
|
|
_footerTextEnabled: footerTextEnabled
|
2017-06-14 18:41:22 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2018-04-25 11:06:46 +00:00
|
|
|
export default translate(connect(_mapStateToProps)(AddPeopleDialog));
|