Skip to content

Commit

Permalink
ERM-1177 (#62)
Browse files Browse the repository at this point in the history
* upgrade react-router-dom imports to use v5 syntax
* fix lint error
  • Loading branch information
CalamityC authored Oct 12, 2020
1 parent 6b1d9ba commit aee68fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/views/ComparisonReportList.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ const ComparisonReportList = (

ComparisonReportList.propTypes = {
isLoading: PropTypes.bool,
onNeedMoreData: PropTypes.func,
sourceData: PropTypes.shape({
comparisonPointData: PropTypes.shape({
comparisonPoints: PropTypes.array,
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/Comparisons.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -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'));
Expand Down

0 comments on commit aee68fa

Please sign in to comment.