import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
+import { injectIntl } from 'react-intl';
import { addGlobalErrorMessage } from '../../../store/globalMessages/duck';
import { getCurrentUser } from '../../../store/rootReducer';
import { translate } from '../../../helpers/l10n';
key: string,
name: string
},
+ intl: Object,
location: { hash: string },
onFail: string => void,
options?: {},
store,
el: this.container,
currentUser: this.props.currentUser,
+ intl: this.props.intl,
location: this.props.location,
router: this.props.router,
...this.props.options
const mapDispatchToProps = { onFail: addGlobalErrorMessage };
-export default connect(mapStateToProps, mapDispatchToProps)(withRouter(Extension));
+export default connect(mapStateToProps, mapDispatchToProps)(injectIntl(withRouter(Extension)));
import * as measures from '../../helpers/measures';
import * as request from '../../helpers/request';
import * as icons from '../../components/icons-components/icons';
+import DateFromNow from '../../components/intl/DateFromNow';
+import DateFormatter from '../../components/intl/DateFormatter';
+import DateTimeFormatter from '../../components/intl/DateTimeFormatter';
import FavoriteContainer from '../../components/controls/FavoriteContainer';
import ListFooter from '../../components/controls/ListFooter';
import Tooltip from '../../components/controls/Tooltip';
window.SonarMeasures = measures;
window.SonarRequest = request;
window.SonarComponents = {
+ DateFromNow,
+ DateFormatter,
+ DateTimeFormatter,
FavoriteContainer,
ListFooter,
Modal,