chore: keep the spinner

pull/3813/head
Arik Chakma 2 years ago
parent 21be8e526f
commit 765efd4eb6
  1. 4
      src/components/Login/GoogleLogin.astro

@ -4,7 +4,7 @@ import Spinner from '../Spinner.astro';
--- ---
<button <button
class='inline-flex h-10 w-full items-center justify-center rounded border border-slate-300 bg-white p-2 text-sm font-medium text-black outline-none transition duration-150 ease-in-out focus:ring-2 focus:ring-[#333] focus:ring-offset-1 disabled:opacity-60' class='inline-flex h-10 w-full items-center justify-center rounded border border-slate-300 bg-white p-2 text-sm font-medium text-black outline-none transition duration-150 ease-in-out focus:ring-2 focus:ring-[#333] focus:ring-offset-1 disabled:opacity-60 disabled:cursor-not-allowed'
id='google-login-button' id='google-login-button'
> >
<Spinner class='hidden text-black' data-google-login-spinner /> <Spinner class='hidden text-black' data-google-login-spinner />
@ -62,8 +62,6 @@ import Spinner from '../Spinner.astro';
} }
}) })
.then((data) => { .then((data) => {
// Remove spinner
hideSpinner();
// Redirect to google login // Redirect to google login
if (data.loginUrl) { if (data.loginUrl) {
window.location.href = data.loginUrl; window.location.href = data.loginUrl;

Loading…
Cancel
Save