register + deletions + image request changes

This commit is contained in:
2024-05-13 19:42:49 +02:00
parent baf31f7959
commit 22ec7f8fdd
16 changed files with 220 additions and 87 deletions

View File

@@ -16,7 +16,11 @@ export const Login = () => {
if (response && !response.success) {
setError(response.error);
}
};
};
const onRegister = () => {
window.location.href = '/register'
}
return (
<div>
@@ -36,6 +40,7 @@ export const Login = () => {
onChange={(e) => setPassword(e.target.value)}
/>
<button type="submit">submit</button>
<button onClick={onRegister}>Register</button>
</form>
</div>
);