Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-1177

handle react-router deprecation warnings

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      ERM Sprint 99
    • Development Team:
      Bienenvolk

      Description

      Description: Upgrade react-router-dom imports to use v5 syntax.

      Details: Several ERM modules still use react-router-dom's v4-style imports, e.g.

      import Switch from 'react-router-dom/Switch';
      

      despite depending on v5 where the preferred syntax is

      import { Switch } from 'react-router-dom';
      

      The old syntax generates a console warning. The following files must be updated:

      ./licenses/src/index.js:import Switch from 'react-router-dom/Switch';
      ./licenses/src/components/viewSections/LicenseAgreements.js:import Link from 'react-router-dom/Link';
      
      ./erm-comparisons/src/index.js:import Switch from 'react-router-dom/Switch';
      ./erm-comparisons/src/components/views/Comparisons.js:import Link from 'react-router-dom/Link';
      
      ./agreements/src/index.js:import Switch from 'react-router-dom/Switch';
      ./agreements/src/components/LicenseAmendmentList/LicenseAmendmentList.js:import Link from 'react-router-dom/Link';
      ./agreements/src/components/FolioLink/FolioLink.js:import Link from 'react-router-dom/Link';
      ./agreements/src/components/AgreementSections/RelatedAgreements.js:import Link from 'react-router-dom/Link';
      ./agreements/src/components/AgreementSections/UsageData.js:import Link from 'react-router-dom/Link';
      ./agreements/src/components/AgreementSections/ControllingLicense.js:import Link from 'react-router-dom/Link';
      ./agreements/src/components/AgreementSections/LinesList.js:import Link from 'react-router-dom/Link';
      ./agreements/src/components/LicensesFieldArray/AmendmentsFieldArray.js:import Link from 'react-router-dom/Link';
      ./agreements/src/components/LinkedLicenseCard/LinkedLicenseCard.js:import Link from 'react-router-dom/Link';
      ./agreements/src/components/EResourceLink/EResourceLink.js:import Link from 'react-router-dom/Link';
      
      ./stripes-erm-components/lib/LicenseCard/LicenseCard.js:import Link from 'react-router-dom/Link';
      

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                adityamatukumalli Aditya matukumalli
                Reporter:
                zburke Zak_Burke
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases