diff --git a/jsx/package-lock.json b/jsx/package-lock.json index 6503a515..bd63d1d1 100644 --- a/jsx/package-lock.json +++ b/jsx/package-lock.json @@ -20,6 +20,7 @@ "react-multi-select-component": "^4.3.4", "react-redux": "^7.2.8", "react-router-dom": "^5.3.4", + "react-router-dom-v5-compat": "^6.22.2", "recompose": "npm:react-recompose@^0.33.0", "redux": "^4.2.1", "regenerator-runtime": "^0.13.11" @@ -2408,6 +2409,14 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, + "node_modules/@remix-run/router": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.15.2.tgz", + "integrity": "sha512-+Rnav+CaoTE5QJc4Jcwh5toUpnVLKYbpU6Ys0zqbakqbaLQHeglLVHPfxOiQqdNmUy5C2lXz5dwC6tQNX2JW2Q==", + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/@restart/hooks": { "version": "0.4.9", "license": "MIT", @@ -8410,6 +8419,37 @@ "react": ">=15" } }, + "node_modules/react-router-dom-v5-compat": { + "version": "6.22.2", + "resolved": "https://registry.npmjs.org/react-router-dom-v5-compat/-/react-router-dom-v5-compat-6.22.2.tgz", + "integrity": "sha512-d7Bo6q3lRwUqtrmuULkpu3NECk+nOT3eNz6PnR5lGIWi0NN7gu6i281cqe3Cfu8v0MmNE41D0g/JdKJhfE7Brw==", + "dependencies": { + "history": "^5.3.0", + "react-router": "6.22.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8", + "react-dom": ">=16.8", + "react-router-dom": "4 || 5" + } + }, + "node_modules/react-router-dom-v5-compat/node_modules/react-router": { + "version": "6.22.2", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.22.2.tgz", + "integrity": "sha512-YD3Dzprzpcq+tBMHBS822tCjnWD3iIZbTeSXMY9LPSG541EfoBGyZ3bS25KEnaZjLcmQpw2AVLkFyfgXY8uvcw==", + "dependencies": { + "@remix-run/router": "1.15.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8" + } + }, "node_modules/react-router-dom/node_modules/history": { "version": "4.10.1", "license": "MIT", diff --git a/jsx/package.json b/jsx/package.json index 9444ced5..30a6a396 100644 --- a/jsx/package.json +++ b/jsx/package.json @@ -40,6 +40,7 @@ "react-multi-select-component": "^4.3.4", "react-redux": "^7.2.8", "react-router-dom": "^5.3.4", + "react-router-dom-v5-compat": "^6.22.2", "recompose": "npm:react-recompose@^0.33.0", "redux": "^4.2.1", "regenerator-runtime": "^0.13.11" diff --git a/jsx/src/App.jsx b/jsx/src/App.jsx index db3dd300..93cc5028 100644 --- a/jsx/src/App.jsx +++ b/jsx/src/App.jsx @@ -13,6 +13,7 @@ import GroupEdit from "./components/GroupEdit/GroupEdit"; import CreateGroup from "./components/CreateGroup/CreateGroup"; import AddUser from "./components/AddUser/AddUser"; import EditUser from "./components/EditUser/EditUser"; +import { CompatRouter } from "react-router-dom-v5-compat"; import "./style/root.css"; @@ -23,34 +24,40 @@ const App = () => {
Displaying {offset}-{offset + visible}
-
-
+
{offset >= 1 ? (
)}
+