mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
update: UI for google auth button and loadin toggle in signin screen (#991)
This commit is contained in:
parent
498d6d2b02
commit
b26e8bd956
@ -47,7 +47,7 @@ export const GoogleLoginButton: FC<IGoogleLoginButton> = (props) => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Script src="https://accounts.google.com/gsi/client" async defer onLoad={loadScript} />
|
<Script src="https://accounts.google.com/gsi/client" async defer onLoad={loadScript} />
|
||||||
<div className="h-12" id="googleSignInButton" ref={googleSignInButton} />
|
<div className="overflow-hidden rounded" id="googleSignInButton" ref={googleSignInButton} />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -97,12 +97,12 @@ const SignInPage: NextPage = () => {
|
|||||||
title: "Plane - Sign In",
|
title: "Plane - Sign In",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{isLoading && (
|
{isLoading ? (
|
||||||
<div className="absolute top-0 left-0 z-50 flex h-full w-full flex-col items-center justify-center gap-y-3">
|
<div className="absolute top-0 left-0 z-50 flex h-full w-full flex-col items-center justify-center gap-y-3">
|
||||||
<h2 className="text-xl text-gray-900">Signing in. Please wait...</h2>
|
<h2 className="text-xl text-brand-base">Signing in. Please wait...</h2>
|
||||||
<Spinner />
|
<Spinner />
|
||||||
</div>
|
</div>
|
||||||
)}
|
) : (
|
||||||
<div className="flex h-screen w-full items-center justify-center overflow-auto">
|
<div className="flex h-screen w-full items-center justify-center overflow-auto">
|
||||||
<div className="flex min-h-full w-full flex-col justify-center py-12 px-6 lg:px-8">
|
<div className="flex min-h-full w-full flex-col justify-center py-12 px-6 lg:px-8">
|
||||||
<div className="flex flex-col gap-10 sm:mx-auto sm:w-full sm:max-w-md">
|
<div className="flex flex-col gap-10 sm:mx-auto sm:w-full sm:max-w-md">
|
||||||
@ -133,6 +133,7 @@ const SignInPage: NextPage = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</DefaultLayout>
|
</DefaultLayout>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user