mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-25 22:37:18 +10:00
Use react-intl through util file
This commit is contained in:
parent
40c4bfb8fe
commit
601706cc5f
147 changed files with 173 additions and 148 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { string, arrayOf, bool, func, number } from 'prop-types';
|
||||
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import dropWhile from 'lodash/dropWhile';
|
||||
import classNames from 'classnames';
|
||||
import { Avatar, InlineTextButton, ReviewRating, UserDisplayName } from '../../components';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { string, oneOfType, bool } from 'prop-types';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { propTypes } from '../../util/types';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
import React from 'react';
|
||||
import { oneOf, string } from 'prop-types';
|
||||
import { FormattedMessage, intlShape, injectIntl } from 'react-intl';
|
||||
import { FormattedMessage, intlShape, injectIntl } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import {
|
||||
propTypes,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage, FormattedHTMLMessage, FormattedDate } from 'react-intl';
|
||||
import { FormattedMessage, FormattedHTMLMessage, FormattedDate } from '../../util/reactIntl';
|
||||
import moment from 'moment';
|
||||
import { LINE_ITEM_NIGHT, LINE_ITEM_DAY, propTypes } from '../../util/types';
|
||||
import { daysBetween, dateFromAPIToLocalNoon } from '../../util/dates';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { bool } from 'prop-types';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from '../../util/reactIntl';
|
||||
import { formatMoney } from '../../util/currency';
|
||||
import { types as sdkTypes } from '../../util/sdkLoader';
|
||||
import { LINE_ITEM_CUSTOMER_COMMISSION, propTypes } from '../../util/types';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from '../../util/reactIntl';
|
||||
import { formatMoney } from '../../util/currency';
|
||||
import { propTypes, LINE_ITEM_CUSTOMER_COMMISSION } from '../../util/types';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { bool } from 'prop-types';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from '../../util/reactIntl';
|
||||
import { formatMoney } from '../../util/currency';
|
||||
import { types as sdkTypes } from '../../util/sdkLoader';
|
||||
import { LINE_ITEM_PROVIDER_COMMISSION, propTypes } from '../../util/types';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from '../../util/reactIntl';
|
||||
import { formatMoney } from '../../util/currency';
|
||||
import { propTypes, LINE_ITEM_PROVIDER_COMMISSION } from '../../util/types';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from '../../util/reactIntl';
|
||||
import Decimal from 'decimal.js';
|
||||
import { formatMoney } from '../../util/currency';
|
||||
import { types as sdkTypes } from '../../util/sdkLoader';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { string } from 'prop-types';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from '../../util/reactIntl';
|
||||
import Decimal from 'decimal.js';
|
||||
import { formatMoney } from '../../util/currency';
|
||||
import config from '../../config';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { bool } from 'prop-types';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from '../../util/reactIntl';
|
||||
import { formatMoney } from '../../util/currency';
|
||||
import { txIsCanceled, txIsDelivered, txIsDeclined } from '../../util/transaction';
|
||||
import { propTypes } from '../../util/types';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from '../../util/reactIntl';
|
||||
import { formatMoney } from '../../util/currency';
|
||||
import { LINE_ITEM_NIGHT, LINE_ITEM_DAY, propTypes } from '../../util/types';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { LINE_ITEM_UNITS, propTypes } from '../../util/types';
|
||||
|
||||
import css from './BookingBreakdown.css';
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
* component for them that can be used in the `BookingBreakdown` component.
|
||||
*/
|
||||
import React from 'react';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from '../../util/reactIntl';
|
||||
import { formatMoney } from '../../util/currency';
|
||||
import { humanizeLineItemCode } from '../../util/data';
|
||||
import { LINE_ITEMS, propTypes } from '../../util/types';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import { bool, func, number, object, string } from 'prop-types';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
|
||||
import { FieldDateRangeController, FilterPopup, FilterPlain } from '../../components';
|
||||
import css from './BookingDateRangeFilter.css';
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
import React from 'react';
|
||||
import { compose } from 'redux';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import { intlShape, injectIntl } from 'react-intl';
|
||||
import { intlShape, injectIntl, FormattedMessage } from '../../util/reactIntl';
|
||||
import { arrayOf, bool, func, node, oneOfType, shape, string } from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import classNames from 'classnames';
|
||||
import omit from 'lodash/omit';
|
||||
import { propTypes, LISTING_STATE_CLOSED, LINE_ITEM_NIGHT, LINE_ITEM_DAY } from '../../util/types';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { ExternalLink } from '../../components';
|
||||
import classNames from 'classnames';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import { bool, func, object, shape, string } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { ensureOwnListing } from '../../util/data';
|
||||
import { LISTING_STATE_DRAFT } from '../../util/types';
|
||||
import { ListingLink } from '../../components';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import { bool, func, object, string } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { ensureOwnListing } from '../../util/data';
|
||||
import { ListingLink } from '../../components';
|
||||
import { LISTING_STATE_DRAFT } from '../../util/types';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
|
||||
import { LISTING_STATE_DRAFT } from '../../util/types';
|
||||
import { ensureListing } from '../../util/data';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { LISTING_STATE_DRAFT } from '../../util/types';
|
||||
import { ensureOwnListing } from '../../util/data';
|
||||
import { ListingLink } from '../../components';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import { array, bool, func, object, string } from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { LISTING_STATE_DRAFT } from '../../util/types';
|
||||
import { EditListingPhotosForm } from '../../forms';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { LISTING_STATE_DRAFT } from '../../util/types';
|
||||
import { ensureOwnListing } from '../../util/data';
|
||||
import { ListingLink } from '../../components';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { LISTING_STATE_DRAFT } from '../../util/types';
|
||||
import { ListingLink } from '../../components';
|
||||
import { EditListingPricingForm } from '../../forms';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { array, bool, func, number, object, oneOf, shape, string } from 'prop-types';
|
||||
import { compose } from 'redux';
|
||||
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import config from '../../config';
|
||||
import { withViewport } from '../../util/contextHelpers';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from '../../util/reactIntl';
|
||||
import routeConfiguration from '../../routeConfiguration';
|
||||
import {
|
||||
LISTING_PAGE_PARAM_TYPE_DRAFT,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { func, instanceOf, object, node, string, bool } from 'prop-types';
|
||||
import { Field } from 'react-final-form';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import range from 'lodash/range';
|
||||
import { ValidationError } from '../../components';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { FieldSelect } from '../../components';
|
||||
|
||||
const FieldBoolean = props => {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { intlShape, injectIntl } from 'react-intl';
|
||||
import { intlShape, injectIntl } from '../../util/reactIntl';
|
||||
import { Field } from 'react-final-form';
|
||||
import classNames from 'classnames';
|
||||
import Decimal from 'decimal.js';
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import {
|
|||
isInclusivelyBeforeDay,
|
||||
isSameDay,
|
||||
} from 'react-dates';
|
||||
import { intlShape, injectIntl } from 'react-intl';
|
||||
import { intlShape, injectIntl } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import moment from 'moment';
|
||||
import config from '../../config';
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { bool, func, instanceOf, oneOf, shape, string, arrayOf } from 'prop-types';
|
||||
import { DateRangePicker, isInclusivelyAfterDay, isInclusivelyBeforeDay } from 'react-dates';
|
||||
import { intlShape, injectIntl } from 'react-intl';
|
||||
import { intlShape, injectIntl } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import moment from 'moment';
|
||||
import { START_DATE, END_DATE } from '../../util/dates';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { intlShape, injectIntl } from 'react-intl';
|
||||
import { intlShape, injectIntl } from '../../util/reactIntl';
|
||||
import { Field } from 'react-final-form';
|
||||
import classNames from 'classnames';
|
||||
import { IconReviewStar, ValidationError } from '../../components';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { bool, func, node, object, string } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
|
||||
import { FilterForm } from '../../forms';
|
||||
import css from './FilterPlain.css';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { bool, func, node, number, object, string } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
|
||||
import { OutsideClickHandler } from '../../components';
|
||||
import { FilterForm } from '../../forms';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { string } from 'prop-types';
|
||||
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { twitterPageURL } from '../../util/urlHelpers';
|
||||
import config from '../../config';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { ResponsiveImage, IconSpinner } from '../../components';
|
||||
import { propTypes } from '../../util/types';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { Promised } from '../../components';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { func, number, string } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import debounce from 'lodash/debounce';
|
||||
import { FieldTextInput } from '../../components';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
import React from 'react';
|
||||
import { node, number, string, shape } from 'prop-types';
|
||||
import { compose } from 'redux';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { withViewport } from '../../util/contextHelpers';
|
||||
import { LayoutWrapperSideNav } from '../../components';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import { string, func } from 'prop-types';
|
||||
import { FormattedMessage, intlShape, injectIntl } from 'react-intl';
|
||||
import { FormattedMessage, intlShape, injectIntl } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { lazyLoadWithDimensions } from '../../util/contextHelpers';
|
||||
import { LINE_ITEM_DAY, LINE_ITEM_NIGHT, propTypes } from '../../util/types';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import { any, arrayOf, bool, func, number, shape, string, oneOfType, object } from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import debounce from 'lodash/debounce';
|
||||
import { IconSpinner } from '../../components';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { compose } from 'redux';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import { FormattedMessage, intlShape, injectIntl } from 'react-intl';
|
||||
import { FormattedMessage, intlShape, injectIntl } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import routeConfiguration from '../../routeConfiguration';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { FormattedMessage, intlShape, injectIntl } from 'react-intl';
|
||||
import { FormattedMessage, intlShape, injectIntl } from '../../util/reactIntl';
|
||||
import { Button, IconClose } from '../../components';
|
||||
|
||||
import css from './Modal.css';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { isTooManyEmailVerificationRequestsError } from '../../util/errors';
|
||||
import { IconEmailAttention, InlineTextButton, NamedLink } from '../../components';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import { bool, func, string } from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import routeConfiguration from '../../routeConfiguration';
|
||||
import { ensureCurrentUser } from '../../util/data';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { NamedLink } from '../../components';
|
||||
|
||||
import css from './ModalMissingInformation.css';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React, { Component } from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { Helmet } from 'react-helmet-async';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import routeConfiguration from '../../routeConfiguration';
|
||||
import config from '../../config';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import range from 'lodash/range';
|
||||
import { IconArrowHead, NamedLink } from '../../components';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { func, number, shape, string } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { propTypes } from '../../util/types';
|
||||
import { formatCurrencyMajorUnit } from '../../util/currency';
|
||||
import config from '../../config';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { func, number, shape, string } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { propTypes } from '../../util/types';
|
||||
import { formatCurrencyMajorUnit } from '../../util/currency';
|
||||
import config from '../../config';
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
import React from 'react';
|
||||
import { arrayOf, string } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { propTypes } from '../../util/types';
|
||||
|
||||
import NoImageIcon from './NoImageIcon';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage, intlShape, injectIntl } from 'react-intl';
|
||||
import { FormattedMessage, intlShape, injectIntl } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { propTypes } from '../../util/types';
|
||||
import { IconReviewUser, Modal } from '../../components';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { arrayOf, string } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { Avatar, ReviewRating, UserDisplayName } from '../../components';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React, { useState } from 'react';
|
|||
import ReactDOM from 'react-dom';
|
||||
import { bool, func, number, shape, string } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import {
|
||||
IconArrowHead,
|
||||
IconCard,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import { compose } from 'redux';
|
||||
import { object, string, bool, number, func, shape } from 'prop-types';
|
||||
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import omit from 'lodash/omit';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { object, string, bool, number, func, shape, array } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import omit from 'lodash/omit';
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { array, func, object, shape, string } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import omit from 'lodash/omit';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { node, string, object } from 'prop-types';
|
||||
import { IntlProvider } from 'react-intl';
|
||||
import { IntlProvider } from '../../util/reactIntl';
|
||||
import config from '../../config';
|
||||
|
||||
import css from './SearchMap.css';
|
||||
|
|
@ -59,7 +59,7 @@ class ReusableMapContainer extends React.Component {
|
|||
// You need to provide onClick functions and URLs as props.
|
||||
const renderChildren = () => {
|
||||
const children = (
|
||||
<IntlProvider locale={config.locale} messages={this.props.messages}>
|
||||
<IntlProvider locale={config.locale} messages={this.props.messages} textComponent="span">
|
||||
{this.props.children}
|
||||
</IntlProvider>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { arrayOf, bool, func, string } from 'prop-types';
|
||||
import { compose } from 'redux';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import config from '../../config';
|
||||
import { propTypes } from '../../util/types';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { propTypes } from '../../util/types';
|
||||
import { formatMoney } from '../../util/currency';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { string } from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { NamedLink } from '../../components';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import { NamedLink } from '../../components';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { lazyLoadWithDimensions } from '../../util/contextHelpers';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { array, arrayOf, func, number, string } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { FieldCheckbox } from '../../components';
|
||||
|
||||
import { FilterPopup, FilterPlain } from '../../components';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { arrayOf, bool, func, shape, string } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
|
||||
import css from './SelectSingleFilterPlain.css';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import { string, func, arrayOf, shape, number } from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import { Menu, MenuContent, MenuItem, MenuLabel } from '..';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import css from './StripeBankAccountTokenInputField.css';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* eslint-disable no-underscore-dangle */
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { intlShape, injectIntl, FormattedMessage } from 'react-intl';
|
||||
import { intlShape, injectIntl, FormattedMessage } from '../../util/reactIntl';
|
||||
import { Field } from 'react-final-form';
|
||||
import classNames from 'classnames';
|
||||
import debounce from 'lodash/debounce';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from '../../util/reactIntl';
|
||||
import { bool, object, string } from 'prop-types';
|
||||
import config from '../../config';
|
||||
import * as validators from '../../util/validators';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { compose } from 'redux';
|
||||
import { FormattedMessage, intlShape, injectIntl } from 'react-intl';
|
||||
import { FormattedMessage, intlShape, injectIntl } from '../../util/reactIntl';
|
||||
import pickBy from 'lodash/pickBy';
|
||||
import classNames from 'classnames';
|
||||
import config from '../../config';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { useState, useEffect } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { ACCOUNT_SETTINGS_PAGES } from '../../routeConfiguration';
|
||||
import { propTypes } from '../../util/types';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { ACCOUNT_SETTINGS_PAGES } from '../../routeConfiguration';
|
||||
import { propTypes } from '../../util/types';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import config from '../../config';
|
||||
import { BookingBreakdown } from '../../components';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { ActivityFeed } from '../../components';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { createSlug, stringify } from '../../util/urlHelpers';
|
||||
import { NamedLink } from '../../components';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { PrimaryButton, SecondaryButton } from '../../components';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import { array, arrayOf, bool, func, number, string } from 'prop-types';
|
||||
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import {
|
||||
TRANSITION_REQUEST_PAYMENT_AFTER_ENQUIRY,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import { string, func, oneOfType } from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import truncate from 'lodash/truncate';
|
||||
import classNames from 'classnames';
|
||||
import { AvatarLarge, NamedLink, InlineTextButton } from '../../components';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { ACCOUNT_SETTINGS_PAGES } from '../../routeConfiguration';
|
||||
import { LinkTabNavHorizontal } from '../../components';
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|||
import { compose } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { withRouter, Redirect } from 'react-router-dom';
|
||||
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import config from '../../config';
|
||||
import { propTypes } from '../../util/types';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React, { Component } from 'react';
|
|||
import { bool, func, instanceOf, object, oneOfType, shape, string } from 'prop-types';
|
||||
import { compose } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import classNames from 'classnames';
|
||||
import config from '../../config';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { compose } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { propTypes } from '../../util/types';
|
||||
import { ensureCurrentUser } from '../../util/data';
|
||||
import { fetchCurrentUser, sendVerificationEmail } from '../../ducks/user.duck';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { bool, func, object, shape, string, oneOf } from 'prop-types';
|
||||
import { compose } from 'redux';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import { intlShape, injectIntl } from 'react-intl';
|
||||
import { intlShape, injectIntl } from '../../util/reactIntl';
|
||||
import { connect } from 'react-redux';
|
||||
import { types as sdkTypes } from '../../util/sdkLoader';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { compose } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import moment from 'moment';
|
||||
import classNames from 'classnames';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|||
import { compose } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import { injectIntl, intlShape } from 'react-intl';
|
||||
import { injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { isScrollingDisabled } from '../../ducks/UI.duck';
|
||||
import config from '../../config';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { bool, oneOfType, object } from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import {
|
||||
LISTING_STATE_PENDING_APPROVAL,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
||||
import React, { Component } from 'react';
|
||||
import { array, arrayOf, bool, func, shape, string, oneOf } from 'prop-types';
|
||||
import { FormattedMessage, intlShape, injectIntl } from 'react-intl';
|
||||
import { FormattedMessage, intlShape, injectIntl } from '../../util/reactIntl';
|
||||
import { compose } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { types as sdkTypes } from '../../util/sdkLoader';
|
||||
import {
|
||||
createUser,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { richText } from '../../util/richText';
|
||||
|
||||
import css from './ListingPage.css';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { PropertyGroup } from '../../components';
|
||||
|
||||
import css from './ListingPage.css';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { InlineTextButton } from '../../components';
|
||||
import { LINE_ITEM_NIGHT, LINE_ITEM_DAY } from '../../util/types';
|
||||
import config from '../../config';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { UserCard, Modal } from '../../components';
|
||||
import { EnquiryForm } from '../../forms';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { ResponsiveImage, Modal, ImageCarousel } from '../../components';
|
||||
import ActionBarMaybe from './ActionBarMaybe';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import { string } from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
import { propTypes } from '../../util/types';
|
||||
import { obfuscatedCoordinates } from '../../util/maps';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import { Reviews } from '../../components';
|
||||
|
||||
import css from './ListingPage.css';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { shape, string } from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from '../../util/reactIntl';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import css from './SectionRulesMaybe.css';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React, { Component } from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { compose } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { propTypes } from '../../util/types';
|
||||
import { parse } from '../../util/urlHelpers';
|
||||
import { isScrollingDisabled } from '../../ducks/UI.duck';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { compose } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { compose } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { propTypes } from '../../util/types';
|
||||
import { isScrollingDisabled } from '../../ducks/UI.duck';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { compose } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { propTypes } from '../../util/types';
|
||||
import { isPasswordRecoveryEmailNotFoundError } from '../../util/errors';
|
||||
import { isScrollingDisabled } from '../../ducks/UI.duck';
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue