Merge pull request #212 from openziti/linter-updates

updated package.json and cleaned up some linter warnings
This commit is contained in:
Michael Quigley 2023-02-06 13:49:49 -05:00 committed by GitHub
commit 81ae5ba415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7576 additions and 4454 deletions

12017
ui/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,13 +17,15 @@
"react-data-table-component": "^7.5.2", "react-data-table-component": "^7.5.2",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-flow-renderer": "^10.3.12", "react-flow-renderer": "^10.3.12",
"react-force-graph": "^1.41.17", "react-force-graph": "^1.41.20",
"react-router-dom": "^6.4.0", "react-router-dom": "^6.4.0",
"react-scripts": "5.0.1",
"react-sizeme": "^3.0.2", "react-sizeme": "^3.0.2",
"react-sparklines": "^1.7.0", "react-sparklines": "^1.7.0",
"styled-components": "^5.3.5" "styled-components": "^5.3.5"
}, },
"devDependencies": {
"react-scripts": "^5.0.1"
},
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",
"build": "react-scripts build", "build": "react-scripts build",

View File

@ -30,7 +30,7 @@ const Register = () => {
return () => { return () => {
mounted = false; mounted = false;
} }
}, []); }, [token]);
if(activeRequest) { if(activeRequest) {
step = <SetPasswordForm email={email} token={token}/> step = <SetPasswordForm email={email} token={token}/>

View File

@ -1,9 +1,8 @@
import {useLocation, useParams} from "react-router-dom"; import {useParams} from "react-router-dom";
import SendRequest from "./SendRequest" import SendRequest from "./SendRequest"
import SetNewPassword from "./SetNewPassword"; import SetNewPassword from "./SetNewPassword";
const ResetPassword = () => { const ResetPassword = () => {
const { search } = useLocation();
const { token } = useParams(); const { token } = useParams();
console.log(token) console.log(token)
let component = undefined let component = undefined