@matchain/matchid-sdk-react 0.1.56-alpha.17 → 0.1.56-alpha.18
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/api.js.map +1 -1
- package/dist/api.mjs +2 -2
- package/dist/{chunk-ZY7EVYXA.mjs → chunk-EUG3QRAG.mjs} +2 -2
- package/dist/{chunk-ZLTIMO57.mjs → chunk-QMV4FDUH.mjs} +2 -1
- package/dist/chunk-QMV4FDUH.mjs.map +1 -0
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +1 -1
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/ui.js.map +1 -1
- package/dist/ui.mjs +1 -1
- package/example/src/App.tsx +6 -1
- package/package.json +1 -1
- package/dist/chunk-ZLTIMO57.mjs.map +0 -1
- /package/dist/{chunk-ZY7EVYXA.mjs.map → chunk-EUG3QRAG.mjs.map} +0 -0
package/dist/ui.mjs
CHANGED
package/example/src/App.tsx
CHANGED
|
@@ -8,7 +8,7 @@ import "@matchain/matchid-sdk-react/index.css"
|
|
|
8
8
|
import Wallet from "@/pages/Wallet";
|
|
9
9
|
import { LocaleList } from "@/config";
|
|
10
10
|
import { LocaleType } from "@matchain/matchid-sdk-react/types";
|
|
11
|
-
import { useUserInfo } from "@matchain/matchid-sdk-react/hooks";
|
|
11
|
+
import { useMatchEvents, useUserInfo } from "@matchain/matchid-sdk-react/hooks";
|
|
12
12
|
import RoutePrivate from "@/components/RoutePrivate";
|
|
13
13
|
import useLocalStore from "@/store/useLocalStore";
|
|
14
14
|
import { LoginButton } from "@matchain/matchid-sdk-react/components";
|
|
@@ -159,6 +159,11 @@ function RouterApp() {
|
|
|
159
159
|
function App() {
|
|
160
160
|
const { appid, locale, endpoints, walletType, backgroundColor, color } = useLocalStore()
|
|
161
161
|
|
|
162
|
+
useMatchEvents({
|
|
163
|
+
onBind() {
|
|
164
|
+
console.log("bind event");
|
|
165
|
+
},
|
|
166
|
+
});
|
|
162
167
|
return <div style={{
|
|
163
168
|
backgroundColor: backgroundColor,
|
|
164
169
|
color: color
|