This commit is contained in:
parent
cd69ad2c68
commit
ff7e5258aa
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue