From 5091eecedfca11ceb73c382716c4b091c7c2a6f9 Mon Sep 17 00:00:00 2001 From: Bogdan Bodnar Date: Wed, 15 Jan 2020 18:19:04 +0100 Subject: [PATCH] Use react-router-dom instead of react-router. --- package-lock.json | 14 ++++++++++++++ package.json | 2 +- src/form/components/ForisForm.js | 2 +- src/testUtils/customTestRender.js | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 64c719c..c372f18 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10212,6 +10212,20 @@ "tiny-warning": "^1.0.0" } }, + "react-router-dom": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.1.2.tgz", + "integrity": "sha512-7BPHAaIwWpZS074UKaw1FjVdZBSVWEk8IuDXdB+OkLb8vd/WRQIpA4ag9WQk61aEfQs47wHyjWUoUGGZxpQXew==", + "requires": { + "@babel/runtime": "^7.1.2", + "history": "^4.9.0", + "loose-envify": "^1.3.1", + "prop-types": "^15.6.2", + "react-router": "5.1.2", + "tiny-invariant": "^1.0.2", + "tiny-warning": "^1.0.0" + } + }, "react-simple-code-editor": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/react-simple-code-editor/-/react-simple-code-editor-0.10.0.tgz", diff --git a/package.json b/package.json index 682f730..23bbe39 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "pdfmake": "^0.1.63", "qrcode.react": "^0.9.3", "react-datetime": "^2.16.3", - "react-router": "^5.1.2", + "react-router-dom": "^5.1.2", "react-uid": "^2.2.0" }, "peerDependencies": { diff --git a/src/form/components/ForisForm.js b/src/form/components/ForisForm.js index c09edc5..89c087f 100644 --- a/src/form/components/ForisForm.js +++ b/src/form/components/ForisForm.js @@ -7,7 +7,7 @@ import React, { useEffect } from "react"; import PropTypes from "prop-types"; -import { Prompt } from "react-router"; +import { Prompt } from "react-router-dom"; import { ALERT_TYPES } from "../../bootstrap/Alert"; import { API_STATE } from "../../api/utils"; diff --git a/src/testUtils/customTestRender.js b/src/testUtils/customTestRender.js index fbf1718..2f55854 100644 --- a/src/testUtils/customTestRender.js +++ b/src/testUtils/customTestRender.js @@ -9,7 +9,7 @@ import React from "react"; import { UIDReset } from "react-uid"; -import { StaticRouter } from "react-router"; +import { StaticRouter } from "react-router-dom"; import { render } from "@testing-library/react"; import PropTypes from "prop-types";