diff --git a/app/pages/reservation/ReservationPage.js b/app/pages/reservation/ReservationPage.js index f737649e2..f176a9c40 100644 --- a/app/pages/reservation/ReservationPage.js +++ b/app/pages/reservation/ReservationPage.js @@ -1,4 +1,6 @@ -import { first, isEmpty, last } from 'lodash'; +import first from 'lodash/first'; +import isEmpty from 'lodash/isEmpty'; +import last from 'lodash/last'; import moment from 'moment'; import React, { Component, PropTypes } from 'react'; import Loader from 'react-loader'; diff --git a/app/pages/reservation/reservation-information/ReservationInformation.js b/app/pages/reservation/reservation-information/ReservationInformation.js index c22093636..3de0bf111 100644 --- a/app/pages/reservation/reservation-information/ReservationInformation.js +++ b/app/pages/reservation/reservation-information/ReservationInformation.js @@ -1,4 +1,5 @@ -import { pick, uniq } from 'lodash'; +import pick from 'lodash/pick'; +import uniq from 'lodash/uniq'; import camelCase from 'lodash/camelCase'; import React, { Component, PropTypes } from 'react'; import Col from 'react-bootstrap/lib/Col'; diff --git a/app/pages/reservation/reservationPageSelector.js b/app/pages/reservation/reservationPageSelector.js index 4509d2a13..0c03e9192 100644 --- a/app/pages/reservation/reservationPageSelector.js +++ b/app/pages/reservation/reservationPageSelector.js @@ -1,5 +1,7 @@ import { createSelector, createStructuredSelector } from 'reselect'; -import { first, isEmpty, orderBy } from 'lodash'; +import first from 'lodash/first'; +import isEmpty from 'lodash/isEmpty'; +import orderBy from 'lodash/orderBy'; import queryString from 'query-string'; import ActionTypes from 'constants/ActionTypes'; diff --git a/app/pages/resource/reservation-calendar/ReservationCalendarContainer.js b/app/pages/resource/reservation-calendar/ReservationCalendarContainer.js index 1e75a722a..451a11f8b 100644 --- a/app/pages/resource/reservation-calendar/ReservationCalendarContainer.js +++ b/app/pages/resource/reservation-calendar/ReservationCalendarContainer.js @@ -5,7 +5,9 @@ import Button from 'react-bootstrap/lib/Button'; import Col from 'react-bootstrap/lib/Col'; import Row from 'react-bootstrap/lib/Row'; import moment from 'moment'; -import { first, last, orderBy } from 'lodash'; +import first from 'lodash/first'; +import last from 'lodash/last'; +import orderBy from 'lodash/orderBy'; import { addNotification } from 'actions/notificationsActions'; import { diff --git a/app/pages/resource/reservation-calendar/reservationCalendarSelector.js b/app/pages/resource/reservation-calendar/reservationCalendarSelector.js index adaa096cf..ffc468ea3 100644 --- a/app/pages/resource/reservation-calendar/reservationCalendarSelector.js +++ b/app/pages/resource/reservation-calendar/reservationCalendarSelector.js @@ -1,4 +1,6 @@ -import { filter, isEmpty, map } from 'lodash'; +import filter from 'lodash/filter'; +import isEmpty from 'lodash/isEmpty'; +import map from 'lodash/map'; import { createSelector, createStructuredSelector } from 'reselect'; import Moment from 'moment'; import { extendMoment } from 'moment-range'; diff --git a/app/pages/resource/reservation-calendar/utils.js b/app/pages/resource/reservation-calendar/utils.js index 0f9215291..e471be8b5 100644 --- a/app/pages/resource/reservation-calendar/utils.js +++ b/app/pages/resource/reservation-calendar/utils.js @@ -1,4 +1,7 @@ -import { filter, maxBy, minBy, some } from 'lodash'; +import filter from 'lodash/filter'; +import maxBy from 'lodash/maxBy'; +import minBy from 'lodash/minBy'; +import some from 'lodash/some'; import moment from 'moment'; import constants from 'constants/AppConstants'; diff --git a/app/pages/resource/resource-header/ResourceHeader.js b/app/pages/resource/resource-header/ResourceHeader.js index db7d224a7..38a9576dc 100644 --- a/app/pages/resource/resource-header/ResourceHeader.js +++ b/app/pages/resource/resource-header/ResourceHeader.js @@ -2,7 +2,7 @@ import React, { PropTypes } from 'react'; import Button from 'react-bootstrap/lib/Button'; import Grid from 'react-bootstrap/lib/Grid'; import { FormattedNumber } from 'react-intl'; -import { round } from 'lodash'; +import round from 'lodash/round'; import iconHome from 'hel-icons/dist/shapes/home.svg'; import iconMapMarker from 'hel-icons/dist/shapes/map-marker.svg'; import iconTicket from 'hel-icons/dist/shapes/ticket.svg'; diff --git a/app/pages/resource/resource-map-info/ResourceMapInfo.js b/app/pages/resource/resource-map-info/ResourceMapInfo.js index 61fa6ec86..17fae318b 100644 --- a/app/pages/resource/resource-map-info/ResourceMapInfo.js +++ b/app/pages/resource/resource-map-info/ResourceMapInfo.js @@ -2,7 +2,7 @@ import React, { PropTypes } from 'react'; import Button from 'react-bootstrap/lib/Button'; import Grid from 'react-bootstrap/lib/Grid'; import iconMapMarker from 'hel-icons/dist/shapes/map-marker.svg'; -import { upperFirst } from 'lodash'; +import upperFirst from 'lodash/upperFirst'; import { injectT } from 'i18n'; import { getServiceMapUrl } from 'utils/unitUtils'; diff --git a/app/shared/reservation-confirmation/ConfirmReservationModal.js b/app/shared/reservation-confirmation/ConfirmReservationModal.js index d902c354c..3e1673b50 100644 --- a/app/shared/reservation-confirmation/ConfirmReservationModal.js +++ b/app/shared/reservation-confirmation/ConfirmReservationModal.js @@ -1,4 +1,8 @@ -import { first, last, orderBy, pick, uniq } from 'lodash'; +import first from 'lodash/first'; +import last from 'lodash/last'; +import orderBy from 'lodash/orderBy'; +import pick from 'lodash/pick'; +import uniq from 'lodash/uniq'; import camelCase from 'lodash/camelCase'; import React, { Component, PropTypes } from 'react'; import Modal from 'react-bootstrap/lib/Modal'; diff --git a/app/shared/reservation-confirmation/ReservationConfirmationContainer.js b/app/shared/reservation-confirmation/ReservationConfirmationContainer.js index 1ba6d553e..3ff6590a5 100644 --- a/app/shared/reservation-confirmation/ReservationConfirmationContainer.js +++ b/app/shared/reservation-confirmation/ReservationConfirmationContainer.js @@ -1,7 +1,9 @@ import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; -import { first, last, orderBy } from 'lodash'; +import first from 'lodash/first'; +import last from 'lodash/last'; +import orderBy from 'lodash/orderBy'; import { deleteReservation, postReservation, putReservation } from 'actions/reservationActions'; import { diff --git a/package.json b/package.json index 1c2c0f9c4..e01facba8 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "leaflet": "1.0.3", "lightbox-react": "0.3.7", "location-origin": "1.1.4", - "lodash": "4.17.5", + "lodash": "4.17.11", "mobile-detect": "1.4.0", "moment": "2.24.0", "moment-range": "4.0.1",