@@ -6,68 +6,84 @@ import { icons } from "../../utils/images";
6
6
import SecondaryBtn from "../SecondaryBtn" ;
7
7
8
8
interface IConnectWallet extends THandleStep {
9
- signIn : ( ) => Promise < void > ;
10
- loader ?: boolean ;
9
+ signIn : ( ) => Promise < void > ;
10
+ handleLensLogin : ( ) => void ;
11
+ loader ?: boolean ;
11
12
}
12
13
13
14
export default function ConnectWallet ( props : IConnectWallet ) {
14
- const { signIn, loader } = props ;
15
- return (
16
- < >
17
- < div className = "w-full relative lg:pt-10" >
18
- < div className = "w-full text-center p-2 relative" >
19
- < div className = "mb-[30px] lg:mb-5" >
20
- < p className = "text-sm md:text-lg font-bold leading-1 text-white/50 mb-6 md:mb-10" >
21
- STEP 1
22
- </ p >
23
- < p className = "text-lg md:text-xl font-bold leading-1 text-white mb-3 md:mb-5 lg:mb-10" >
24
- Connect your wallet
25
- </ p >
26
- < p className = "text-sm md:text-lg font-regular leading-1 md:leading-[32px] text-white/50 md:mb-10" >
27
- Enable access to your wallet to load < br /> your assets to the
28
- chest
29
- </ p >
30
- </ div >
31
- < Image
32
- className = "m-auto mb-[30px] lg:mb-5"
33
- src = { icons . tchest }
34
- alt = "Chest"
35
- />
15
+ const { signIn, loader, handleLensLogin } = props ;
16
+ return (
17
+ < >
18
+ < div className = "w-full relative lg:pt-10" >
19
+ < div className = "w-full text-center p-2 relative" >
20
+ < div className = "mb-[30px] lg:mb-5" >
21
+ < p className = "text-sm md:text-lg font-bold leading-1 text-white/50 mb-6 md:mb-10" >
22
+ STEP 1
23
+ </ p >
24
+ < p className = "text-lg md:text-xl font-bold leading-1 text-white mb-3 md:mb-5 lg:mb-10" >
25
+ Connect your wallet
26
+ </ p >
27
+ < p className = "text-sm md:text-lg font-regular leading-1 md:leading-[32px] text-white/50 md:mb-10" >
28
+ Enable access to your wallet to load < br /> your assets to the
29
+ chest
30
+ </ p >
31
+ </ div >
32
+ < Image
33
+ className = "m-auto mb-[30px] lg:mb-5"
34
+ src = { icons . tchest }
35
+ alt = "Chest"
36
+ />
36
37
37
- { /* <div className="flex gap-3 justify-center items-center w-[80%] md:w-[60%] lg:w-[360px] h-[64px] mx-auto rounded-lg mb-6 lg:mb-4">
38
+ { /* <div className="flex gap-3 justify-center items-center w-[80%] md:w-[60%] lg:w-[360px] h-[64px] mx-auto rounded-lg mb-6 lg:mb-4">
38
39
<SecondaryBtn
39
40
leftImage={icons.walletIcon ?? ""}
40
41
title={connecting ? "Connecting..." : "Connect your wallet"}
41
42
onClick={connectWallet}
42
43
/>
43
44
</div> */ }
44
- { loader ? (
45
- < div className = "h-full flex flex-col items-center justify-center" >
46
- < div className = "spinnerLoader" > </ div >
45
+ { loader ? (
46
+ < div className = "h-full flex flex-col items-center justify-center" >
47
+ < div className = "spinnerLoader" > </ div >
47
48
48
- < p className = " mt-5 opacity-50 mb-14 text-[16px] leading-14 text-white" >
49
- Setting up Smart Account!
50
- </ p >
51
- </ div >
52
- ) : (
53
- < div className = "flex gap-3 justify-center items-center w-[80%] md:w-[60%] lg:w-[360px] mx-auto rounded-lg mt-10" >
54
- < button
55
- className = { `py-4 w-full rounded-lg bg-white flex gap-2 items-center justify-center max-w-[400px]` }
56
- onClick = { signIn }
57
- >
58
- < Image
59
- src = { icons . googleIcon }
60
- alt = "google login"
61
- className = "w-6"
62
- />
63
- < span className = "text-[16px] leading-1 font-medium text-black/50 self-center my-auto" >
64
- { "Sign in with Google" }
65
- </ span >
66
- </ button >
67
- </ div >
68
- ) }
69
- </ div >
49
+ < p className = " mt-5 opacity-50 mb-14 text-[16px] leading-14 text-white" >
50
+ Setting up Smart Account!
51
+ </ p >
70
52
</ div >
71
- </ >
72
- ) ;
53
+ ) : (
54
+ < div className = "flex gap-3 justify-center items-center w-[80%] md:w-[60%] lg:w-[360px] mx-auto rounded-lg mt-10" >
55
+ < button
56
+ className = { `py-4 w-full rounded-lg bg-white flex gap-2 items-center justify-center max-w-[400px]` }
57
+ onClick = { signIn }
58
+ >
59
+ < Image
60
+ src = { icons . googleIcon }
61
+ alt = "google login"
62
+ className = "w-6"
63
+ />
64
+ < span className = "text-[16px] leading-1 font-medium text-black/50 self-center my-auto" >
65
+ { "Sign in with Google" }
66
+ </ span >
67
+ </ button >
68
+ </ div >
69
+ ) }
70
+ < div className = "flex gap-3 justify-center items-center w-[80%] md:w-[60%] lg:w-[360px] mx-auto rounded-lg mt-10" >
71
+ < button
72
+ className = { `py-4 w-full rounded-lg bg-white flex gap-2 items-center justify-center max-w-[400px]` }
73
+ onClick = { handleLensLogin }
74
+ >
75
+ < Image
76
+ src = { icons . lensLogo }
77
+ alt = "lens login"
78
+ className = "w-6 rounded-full"
79
+ />
80
+ < span className = "text-[16px] leading-1 font-medium text-black/50 self-center my-auto" >
81
+ { "Sign in with Lens" }
82
+ </ span >
83
+ </ button >
84
+ </ div >
85
+ </ div >
86
+ </ div >
87
+ </ >
88
+ ) ;
73
89
}
0 commit comments