login API added
This commit is contained in:
@@ -27,8 +27,11 @@ export default function Login() {
|
||||
},
|
||||
onError: (error) => {
|
||||
console.log('error', error)
|
||||
navigate('/dash') // remove later
|
||||
|
||||
},
|
||||
onSuccess: () => {
|
||||
navigate('/dash') // later add redux to dispatch state
|
||||
}
|
||||
})
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user