From 81573cd2c7d7d7a5f7237c4283ba97a55300aa4d Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 5 Feb 2020 11:35:13 +0200 Subject: Implement CSP --- frontend/src/Home.js | 3 +++ frontend/src/Login.js | 2 +- frontend/src/Register.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'frontend/src') diff --git a/frontend/src/Home.js b/frontend/src/Home.js index cc37156..c67c69a 100644 --- a/frontend/src/Home.js +++ b/frontend/src/Home.js @@ -19,6 +19,9 @@ const Home = observer(({ user }) => {
Hello {user.username}! +
+ Placeholder +
); }); diff --git a/frontend/src/Login.js b/frontend/src/Login.js index 1a1cb2b..d17a5ab 100644 --- a/frontend/src/Login.js +++ b/frontend/src/Login.js @@ -6,7 +6,7 @@ import axios from './axios'; import userState from './UserState'; const Login = () => { - const { register, handleSubmit, watch, errors } = useForm(); + const { register, handleSubmit } = useForm(); const [ loginError, setLoginError ] = useState(null); const onSubmit = async data => { diff --git a/frontend/src/Register.js b/frontend/src/Register.js index e49b4ea..f4a6ec3 100644 --- a/frontend/src/Register.js +++ b/frontend/src/Register.js @@ -6,7 +6,7 @@ import axios from './axios'; import userState from './UserState'; const Register = () => { - const { register, handleSubmit, watch, errors } = useForm(); + const { register, handleSubmit } = useForm(); const [ loginError, setLoginError ] = useState(null); const onSubmit = async data => { -- cgit v1.3