chore: lint fix
This commit is contained in:
@@ -2,12 +2,11 @@ import { Navigate } from 'react-router-dom';
|
||||
|
||||
import { history } from '../helpers';
|
||||
|
||||
|
||||
function PrivateRoute({ children }) {
|
||||
if (!localStorage.getItem('user')) {
|
||||
return <Navigate to="/login" state={{ from: history.location }} />;
|
||||
return <Navigate to='/login' state={{ from: history.location }} />;
|
||||
}
|
||||
return children;
|
||||
}
|
||||
|
||||
export { PrivateRoute };
|
||||
export { PrivateRoute };
|
||||
|
||||
Reference in New Issue
Block a user