diff options
Diffstat (limited to 'frontend/src')
| -rw-r--r-- | frontend/src/Home.js | 3 | ||||
| -rw-r--r-- | frontend/src/Login.js | 2 | ||||
| -rw-r--r-- | frontend/src/Register.js | 2 |
3 files changed, 5 insertions, 2 deletions
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 }) => { <div> <LogoutBtn /> Hello {user.username}! + <div> + <img src="https://placehold.it/200x200" alt="Placeholder" /> + </div> </div> ); }); 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 => { |
