Skip to content

Commit

Permalink
Merge pull request #1709 from makeplane/stage-release
Browse files Browse the repository at this point in the history
promote: stage-release to master
  • Loading branch information
aaryan610 authored Jul 28, 2023
2 parents e930f8c + 30054f7 commit e5a3bec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
28 changes: 16 additions & 12 deletions apps/app/components/account/google-login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,21 @@ export const GoogleLoginButton: FC<IGoogleLoginButton> = ({ handleSignIn }) => {
callback: handleSignIn,
});

window?.google?.accounts.id.renderButton(
googleSignInButton.current,
{
type: "standard",
theme: "outline",
size: "large",
logo_alignment: "center",
width: "360",
text: "signin_with",
} as GsiButtonConfiguration // customization attributes
);
try {
window?.google?.accounts.id.renderButton(
googleSignInButton.current,
{
type: "standard",
theme: "outline",
size: "large",
logo_alignment: "center",
width: 360,
text: "signin_with",
} as GsiButtonConfiguration // customization attributes
);
} catch (err) {
console.log(err);
}

window?.google?.accounts.id.prompt(); // also display the One Tap dialog

Expand All @@ -50,7 +54,7 @@ export const GoogleLoginButton: FC<IGoogleLoginButton> = ({ handleSignIn }) => {
<>
<Script src="https://accounts.google.com/gsi/client" async defer onLoad={loadScript} />
<div
className="overflow-hidden rounded w-full flex justify-center items-center !text-sm !font-medium !text-custom-text-100"
className="overflow-hidden rounded w-full"
id="googleSignInButton"
ref={googleSignInButton}
/>
Expand Down
2 changes: 1 addition & 1 deletion apps/app/google.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ interface GsiButtonConfiguration {
text?: "signin_with" | "signup_with" | "continue_with" | "signup_with";
shape?: "rectangular" | "pill" | "circle" | "square";
logo_alignment?: "left" | "center";
width?: string;
width?: number;
local?: string;
}

Expand Down

1 comment on commit e5a3bec

@vercel
Copy link

@vercel vercel bot commented on e5a3bec Jul 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

plane – ./apps/app

plane-theta.vercel.app
plane-git-master-plane.vercel.app
plane-plane.vercel.app
app.plane.so

Please sign in to comment.