diff --git a/src/components/accessories/patientDataForm/PatientDataForm.tsx b/src/components/accessories/patientDataForm/PatientDataForm.tsx index c85e6f08e..6f6f83b91 100644 --- a/src/components/accessories/patientDataForm/PatientDataForm.tsx +++ b/src/components/accessories/patientDataForm/PatientDataForm.tsx @@ -9,7 +9,6 @@ import { object, string } from "yup"; import SmallButton from "../smallButton/SmallButton"; import "./styles.scss"; import TextButton from "../textButton/TextButton"; -import { PatientDTO } from "../../../generated"; const PatientDataForm: FunctionComponent = ({ initialValues, diff --git a/src/components/activities/loginActivity/LoginActivity.tsx b/src/components/activities/loginActivity/LoginActivity.tsx index a406a2f56..63cbce56f 100644 --- a/src/components/activities/loginActivity/LoginActivity.tsx +++ b/src/components/activities/loginActivity/LoginActivity.tsx @@ -58,7 +58,7 @@ const LoginActivity: FunctionComponent = ({ LocalStorage.write("sessionId", "token"); window.location.href = successRoute; } - }, [authenticated]); + }, [authenticated, successRoute]); return (
diff --git a/src/index.tsx b/src/index.tsx index af7eece67..b585e8dd9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -5,7 +5,7 @@ import App from "./App"; import * as serviceWorker from "./serviceWorker"; import { Provider } from "react-redux"; import { IState } from "./types"; -import { applyMiddleware, compose, createStore, combineReducers } from "redux"; +import { applyMiddleware, createStore, combineReducers } from "redux"; import { composeWithDevTools } from "redux-devtools-extension"; import thunkMiddleware from "redux-thunk"; import main from "./state/main/reducer"; diff --git a/src/state/main/actions.ts b/src/state/main/actions.ts index 6530611ed..f97178413 100644 --- a/src/state/main/actions.ts +++ b/src/state/main/actions.ts @@ -7,7 +7,6 @@ import { import { Dispatch } from "redux"; import { Authentication, LoginApiApi } from "../../generated"; import { IAction } from "../types"; -import { LocalStorage } from "../../libraries/storage/storage"; const api = new LoginApiApi();