Updated all packages and fixed errors thrown by new ESLint
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user