Updated all packages and fixed errors thrown by new ESLint

This commit is contained in:
Patrick Fic
2020-10-30 12:40:27 -07:00
parent fe02f80cc7
commit 3721f7ffe2
18 changed files with 25458 additions and 3676 deletions

View File

@@ -1,6 +1,7 @@
import React from "react";
import { Route, Redirect, useLocation } from "react-router-dom";
export default ({ component: Component, isAuthorized, ...rest }) => {
import { Redirect, Route, useLocation } from "react-router-dom";
function PrivateRoute({ component: Component, isAuthorized, ...rest }) {
const location = useLocation();
return (
@@ -15,4 +16,6 @@ export default ({ component: Component, isAuthorized, ...rest }) => {
}
/>
);
};
}
export default PrivateRoute;