Skip to content

Commit

Permalink
Revert "Unpublish Google button on settings page"
Browse files Browse the repository at this point in the history
This reverts commit 7d692dd.
  • Loading branch information
Rindrics committed Feb 17, 2025
1 parent bcc814c commit fe818e5
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions app/(main)/settings/account/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ClickableText } from "@/components/ui/clicable-text";
import { Field } from "@/components/ui/field";
import { Label } from "@/components/ui/label";
import { Skeleton } from "@/components/ui/skeleton";
import { googleOauthFlag } from "@/flags";
import Link from "next/link";
import { Suspense } from "react";
import { Card } from "../components/card";
Expand All @@ -13,7 +12,6 @@ import { GoogleAuthentication } from "./google-authentication";

export default async function AccountSettingPage() {
const { displayName, email } = await getAccountInfo();
const displayGoogleOauth = await googleOauthFlag();

return (
<div className="grid gap-[16px]">
Expand Down Expand Up @@ -50,15 +48,13 @@ export default async function AccountSettingPage() {
>
<GitHubAuthentication />
</Suspense>
{displayGoogleOauth && (
<Suspense
fallback={
<Skeleton className="rounded-md border border-black-70 w-full h-16" />
}
>
<GoogleAuthentication />
</Suspense>
)}
<Suspense
fallback={
<Skeleton className="rounded-md border border-black-70 w-full h-16" />
}
>
<GoogleAuthentication />
</Suspense>
</Card>
<Card
title="Reset Password"
Expand Down

0 comments on commit fe818e5

Please sign in to comment.