register + deletions + image request changes
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
Reference in New Issue
Block a user