1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-12-24 00:01:36 +01:00

Use react-router-dom instead of react-router.

This commit is contained in:
Bogdan Bodnar 2020-01-15 18:19:04 +01:00
parent e5cbbc9019
commit 5091eecedf
No known key found for this signature in database
GPG Key ID: 49E4169AD3CA42B0
4 changed files with 17 additions and 3 deletions

14
package-lock.json generated
View File

@ -10212,6 +10212,20 @@
"tiny-warning": "^1.0.0" "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": { "react-simple-code-editor": {
"version": "0.10.0", "version": "0.10.0",
"resolved": "https://registry.npmjs.org/react-simple-code-editor/-/react-simple-code-editor-0.10.0.tgz", "resolved": "https://registry.npmjs.org/react-simple-code-editor/-/react-simple-code-editor-0.10.0.tgz",

View File

@ -20,7 +20,7 @@
"pdfmake": "^0.1.63", "pdfmake": "^0.1.63",
"qrcode.react": "^0.9.3", "qrcode.react": "^0.9.3",
"react-datetime": "^2.16.3", "react-datetime": "^2.16.3",
"react-router": "^5.1.2", "react-router-dom": "^5.1.2",
"react-uid": "^2.2.0" "react-uid": "^2.2.0"
}, },
"peerDependencies": { "peerDependencies": {

View File

@ -7,7 +7,7 @@
import React, { useEffect } from "react"; import React, { useEffect } from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { Prompt } from "react-router"; import { Prompt } from "react-router-dom";
import { ALERT_TYPES } from "../../bootstrap/Alert"; import { ALERT_TYPES } from "../../bootstrap/Alert";
import { API_STATE } from "../../api/utils"; import { API_STATE } from "../../api/utils";

View File

@ -9,7 +9,7 @@
import React from "react"; import React from "react";
import { UIDReset } from "react-uid"; import { UIDReset } from "react-uid";
import { StaticRouter } from "react-router"; import { StaticRouter } from "react-router-dom";
import { render } from "@testing-library/react"; import { render } from "@testing-library/react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";