From ac94b85c5116d4338d1dbb11315ce40e21b3c071 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Sun, 2 Apr 2023 00:31:59 +0600 Subject: [PATCH] fix: types in spinner --- src/components/Login/GoogleLogin.astro | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Login/GoogleLogin.astro b/src/components/Login/GoogleLogin.astro index 69de2f4a0..cc1905b5f 100644 --- a/src/components/Login/GoogleLogin.astro +++ b/src/components/Login/GoogleLogin.astro @@ -7,7 +7,7 @@ import Spinner from '../Spinner.astro'; 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' id='google-login-button' > - +
Continue with Google @@ -20,7 +20,9 @@ import Spinner from '../Spinner.astro'; import Cookies from 'js-cookie'; import { TOKEN_COOKIE_NAME } from '../../lib/utils'; const googleLoginButton = document.getElementById('google-login-button'); - const googleLoginSpinner = document.getElementById('google-login-spinner'); + const googleLoginSpinner = document.getElementById( + '[data-google-login-spinner]' + ); const googleLoginText = document.querySelector('[data-google-text]'); const googleErrorText = document.querySelector('[data-google-error]');