@matchain/matchid-sdk-react 0.1.55-alpha.0 → 0.1.55-alpha.1

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-N7NX7Q7M.mjs";
3
+ } from "./chunk-LTPXS5PV.mjs";
4
4
  import {
5
5
  types_exports
6
6
  } from "./chunk-HBOS3RBL.mjs";
@@ -13,7 +13,7 @@ import {
13
13
  ui_exports,
14
14
  useMatch,
15
15
  wagmiConfig
16
- } from "./chunk-36M5ROJI.mjs";
16
+ } from "./chunk-SKA35IYC.mjs";
17
17
  import "./chunk-UA6XHZHX.mjs";
18
18
  import "./chunk-IZOOVZAD.mjs";
19
19
  import {
@@ -1,5 +1,5 @@
1
1
  export { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-CBQXIlWu.mjs';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from '../index-MsSYZS38.mjs';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from '../index-CB6ZNvzn.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import '../types-CXzZS0eM.mjs';
@@ -1,5 +1,5 @@
1
1
  export { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-agAVLGF5.js';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from '../index-Es7yJi7T.js';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from '../index-6kXyNEXB.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import '../types-CXzZS0eM.js';
package/dist/ui/index.js CHANGED
@@ -1360,7 +1360,8 @@ function HashPanel({
1360
1360
  chain,
1361
1361
  isOpen,
1362
1362
  onClose,
1363
- zIndex
1363
+ zIndex,
1364
+ error
1364
1365
  }) {
1365
1366
  const [status, setStatus] = (0, import_react41.useState)("confirm");
1366
1367
  const statusMaps = {
@@ -1385,7 +1386,7 @@ function HashPanel({
1385
1386
  color: "#F14141"
1386
1387
  }
1387
1388
  };
1388
- const statusValue = statusMaps[status];
1389
+ const statusValue = error ? statusMaps.fail : statusMaps[status];
1389
1390
  const [shouldRefetch, setShouldRefetch] = (0, import_react41.useState)(true);
1390
1391
  (0, import_react41.useEffect)(() => {
1391
1392
  if (hash) {
@@ -1439,7 +1440,8 @@ function HashPanel({
1439
1440
  hash && /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
1440
1441
  "Hash:",
1441
1442
  /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("a", { href: link, target: "_blank", children: hash })
1442
- ] })
1443
+ ] }),
1444
+ error && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "matchid-hashpanel-text", children: error })
1443
1445
  ] }),
1444
1446
  /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
1445
1447
  ] })