This commit is contained in:
kurpfish 2021-08-09 16:40:09 +03:00
parent 21d95a9c04
commit 1ff6ada311

View File

@ -67,14 +67,14 @@ const AuthForPartners = () => {
onClick={!isLoading ? (e) => {
e.preventDefault();
dispatch(loading(true))
// fetchAuth({
// username,
// password,
// dispatch: ()=> {
// dispatch(auth(true))
// dispatch(loading(false))
// }
// })
fetchAuth({
username,
password,
dispatch: ()=> {
dispatch(auth(true))
dispatch(loading(false))
}
})
} : ()=>{}}
>
{ isLoading ? <Loader /> : 'Войти' }