File tree Expand file tree Collapse file tree 5 files changed +16
-10
lines changed
src/components/CardanoWallet Expand file tree Collapse file tree 5 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 14
14
"dependencies" : {
15
15
"@headlessui/react" : " ^1.6.6" ,
16
16
"@heroicons/react" : " ^2.0.10" ,
17
- "@meshsdk/core" : " 1.2.1-beta.2 " ,
18
- "@meshsdk/react" : " 1.1.2 " ,
17
+ "@meshsdk/core" : " 1.3.0 " ,
18
+ "@meshsdk/react" : " 1.1.3 " ,
19
19
"copy-to-clipboard" : " ^3.3.2" ,
20
20
"flowbite" : " ^1.5.3" ,
21
21
"flowbite-react" : " ^0.1.10" ,
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ const GuideLoginWithWalletPage: NextPage = () => {
111
111
codeSnippetClient += ` return (\n` ;
112
112
codeSnippetClient += ` <>\n` ;
113
113
codeSnippetClient += ` <CardanoWallet\n` ;
114
- codeSnippetClient += ` label="Sign In With Cardano "\n` ;
114
+ codeSnippetClient += ` label="Cardano Sign In"\n` ;
115
115
codeSnippetClient += ` onConnected={() => frontendStartLoginProcess()}\n` ;
116
116
codeSnippetClient += ` />\n` ;
117
117
codeSnippetClient += ` </>\n` ;
@@ -139,7 +139,7 @@ const GuideLoginWithWalletPage: NextPage = () => {
139
139
140
140
let codeSnippetWallet = `` ;
141
141
codeSnippetWallet += `<CardanoWallet\n` ;
142
- codeSnippetWallet += ` label="Sign In With Cardano "\n` ;
142
+ codeSnippetWallet += ` label="Cardano Sign In"\n` ;
143
143
codeSnippetWallet += ` onConnected={() => frontendStartLoginProcess()}\n` ;
144
144
codeSnippetWallet += `/>\n` ;
145
145
@@ -202,7 +202,7 @@ const GuideLoginWithWalletPage: NextPage = () => {
202
202
< h2 > Demo</ h2 >
203
203
< p > Try the demo. Sign in with your Cardano wallet.</ p >
204
204
< CardanoWallet
205
- label = "Sign In With Cardano "
205
+ label = "Cardano Sign In"
206
206
onConnected = { ( ) => frontendStep1 ( ) }
207
207
/>
208
208
< RunDemoResult response = { response } label = "Signature is valid" />
Original file line number Diff line number Diff line change 3
3
"description" : " Rapidly build Web3 apps on the Cardano Blockchain." ,
4
4
"homepage" : " https://meshjs.dev" ,
5
5
"author" : " MeshJS" ,
6
- "version" : " 1.2.1-beta.2 " ,
6
+ "version" : " 1.3.0 " ,
7
7
"license" : " Apache-2.0" ,
8
8
"type" : " module" ,
9
9
"repository" : {
Original file line number Diff line number Diff line change 3
3
"description" : " React Hooks & Components you need for building dApps on Cardano." ,
4
4
"homepage" : " https://meshjs.dev" ,
5
5
"author" : " MeshJS" ,
6
- "version" : " 1.1.2 " ,
6
+ "version" : " 1.1.3 " ,
7
7
"license" : " Apache-2.0" ,
8
8
"type" : " module" ,
9
9
"repository" : {
61
61
"vite" : " 3.1.4"
62
62
},
63
63
"peerDependencies" : {
64
- "@meshsdk/core" : " 1.2.1-beta.2 " ,
64
+ "@meshsdk/core" : " 1.3.0 " ,
65
65
"react-dom" : " 17.x || 18.x" ,
66
66
"react" : " 17.x || 18.x"
67
67
},
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const StyledMenuButton = tw.button`
8
8
flex items-center justify-center
9
9
font-normal text-lg
10
10
border rounded-t-md
11
- px-4 py-2
11
+ w-60 px-4 py-2
12
12
shadow-sm
13
13
` ;
14
14
@@ -22,7 +22,13 @@ const StyledMenuList = styled.div(({ hidden }: { hidden: boolean }) => [
22
22
hidden && tw `hidden` ,
23
23
] ) ;
24
24
25
- export const CardanoWallet = ( { label = 'Connect Wallet' , onConnected } ) => {
25
+ export const CardanoWallet = ( {
26
+ label = 'Connect Wallet' ,
27
+ onConnected = undefined
28
+ } : {
29
+ label ?: string ,
30
+ onConnected ?: Function
31
+ } ) => {
26
32
const wallets = useWalletList ( ) ;
27
33
28
34
const [ hideMenuList , setHideMenuList ] = useState ( true ) ;
You can’t perform that action at this time.
0 commit comments