This commit is contained in:
hailin 2025-03-12 12:43:27 +08:00
parent cd69ad2c68
commit ff7e5258aa
1 changed files with 3 additions and 1 deletions

View File

@ -3,10 +3,12 @@ import { Loading } from "@/components/ui/loading";
// import { GitHub, Google } from "@/components/ui/icons"; // import { GitHub, Google } from "@/components/ui/icons";
import { toast } from "@/components/ui/toaster"; import { toast } from "@/components/ui/toaster";
// import { useSignIn } from "@clerk/nextjs"; // import { useSignIn } from "@clerk/nextjs";
// import type { OAuthStrategy } from "@clerk/types"; //import type { OAuthStrategy } from "@clerk/types";
import * as React from "react"; import * as React from "react";
import { OAuthButton } from "../oauth-button"; import { OAuthButton } from "../oauth-button";
type OAuthStrategy = 'oauth_google' | 'oauth_github';
export function OAuthSignIn() { export function OAuthSignIn() {
const [isLoading, setIsLoading] = React.useState<OAuthStrategy | null>(null); const [isLoading, setIsLoading] = React.useState<OAuthStrategy | null>(null);
const { signIn, isLoaded: signInLoaded } = useSignIn(); const { signIn, isLoaded: signInLoaded } = useSignIn();