@matchain/matchid-sdk-react 0.1.51-alpha.2 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  api_exports
3
- } from "./chunk-5W2S6QMI.mjs";
3
+ } from "./chunk-UXFJALFG.mjs";
4
4
  import {
5
5
  MatchProvider,
6
6
  ModalProvider,
@@ -8,7 +8,7 @@ import {
8
8
  components_exports,
9
9
  hooks_exports,
10
10
  useMatch
11
- } from "./chunk-OWEJPD4R.mjs";
11
+ } from "./chunk-VIJ4FUT3.mjs";
12
12
  import {
13
13
  types_exports
14
14
  } from "./chunk-HBOS3RBL.mjs";
@@ -14,6 +14,14 @@ export default function Login(){
14
14
  const [code, setCode] = React.useState('')
15
15
  const [emailOpen, setEmailOpen] = React.useState(false)
16
16
  const [loginOpen, setLoginOpen] = React.useState(false)
17
+ const onSendEmail = async () => {
18
+
19
+ try{
20
+ await getLoginEmailCode(email)
21
+ }catch(error:any){
22
+ console.error('qwe-error',error)
23
+ }
24
+ }
17
25
 
18
26
 
19
27
  return (
@@ -52,7 +60,7 @@ export default function Login(){
52
60
  <input type={"text"} className={`border`} placeholder={"email"}
53
61
  onChange={(e) => setEmail(e.target.value)} value={email}/>
54
62
  <button className={`bg-gray-300 p-1 rounded`}
55
- onClick={() => getLoginEmailCode(email)}>Send
63
+ onClick={onSendEmail}>Send
56
64
  </button>
57
65
  </div>
58
66
  <div className={`flex gap-5`}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matchain/matchid-sdk-react",
3
- "version": "0.1.51-alpha.2",
3
+ "version": "0.1.51",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {