File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
apps/dashboard/src/app/login Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,32 @@ import { useTheme } from "next-themes";
77import { useSearchParams } from "next/navigation" ;
88import { Suspense , useEffect , useState } from "react" ;
99import { ConnectEmbed } from "thirdweb/react" ;
10+ import { createWallet , inAppWallet } from "thirdweb/wallets" ;
1011import { ThirdwebMiniLogo } from "../components/ThirdwebMiniLogo" ;
1112import { getSDKTheme } from "../components/sdk-component-theme" ;
1213import { doLogin , doLogout , getLoginPayload , isLoggedIn } from "./auth-actions" ;
1314
15+ const wallets = [
16+ inAppWallet ( {
17+ auth : {
18+ options : [
19+ "google" ,
20+ "apple" ,
21+ "facebook" ,
22+ "github" ,
23+ "email" ,
24+ "phone" ,
25+ "passkey" ,
26+ ] ,
27+ } ,
28+ } ) ,
29+ createWallet ( "io.metamask" ) ,
30+ createWallet ( "com.coinbase.wallet" ) ,
31+ createWallet ( "io.rabby" ) ,
32+ createWallet ( "me.rainbow" ) ,
33+ createWallet ( "io.zerion.wallet" ) ,
34+ ] ;
35+
1436export default function LoginPage ( ) {
1537 return (
1638 < div className = "relative grid h-screen place-items-center bg-muted/30" >
@@ -74,6 +96,7 @@ function CustomConnectEmmbed() {
7496 return isLoggedInResult ;
7597 } ,
7698 } }
99+ wallets = { wallets }
77100 client = { client }
78101 modalSize = { isLG ? "wide" : "compact" }
79102 theme = { getSDKTheme ( theme === "light" ? "light" : "dark" ) }
You can’t perform that action at this time.
0 commit comments