From aee68fa3eda3c81b1ba4058d54d86424a7ae0de0 Mon Sep 17 00:00:00 2001 From: CalamityC <42971992+CalamityC@users.noreply.github.com> Date: Mon, 12 Oct 2020 04:02:04 +0200 Subject: [PATCH] ERM-1177 (#62) * upgrade react-router-dom imports to use v5 syntax * fix lint error --- src/components/views/ComparisonReportList.js | 1 + src/components/views/Comparisons.js | 2 +- src/index.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/views/ComparisonReportList.js b/src/components/views/ComparisonReportList.js index b8385ce..7f0688d 100644 --- a/src/components/views/ComparisonReportList.js +++ b/src/components/views/ComparisonReportList.js @@ -354,6 +354,7 @@ const ComparisonReportList = ( ComparisonReportList.propTypes = { isLoading: PropTypes.bool, + onNeedMoreData: PropTypes.func, sourceData: PropTypes.shape({ comparisonPointData: PropTypes.shape({ comparisonPoints: PropTypes.array, diff --git a/src/components/views/Comparisons.js b/src/components/views/Comparisons.js index cfd009b..fed915a 100644 --- a/src/components/views/Comparisons.js +++ b/src/components/views/Comparisons.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import Link from 'react-router-dom/Link'; +import { Link } from 'react-router-dom'; import { noop } from 'lodash'; import { FormattedMessage } from 'react-intl'; import { AppIcon, IfPermission } from '@folio/stripes/core'; diff --git a/src/index.js b/src/index.js index c94ca81..e8bced0 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,6 @@ import React, { lazy, Suspense } from 'react'; import PropTypes from 'prop-types'; -import Switch from 'react-router-dom/Switch'; +import { Switch } from 'react-router-dom'; import { Route } from '@folio/stripes/core'; const ComparisonCreateRoute = lazy(() => import('./routes/ComparisonCreateRoute'));