@thenamespace/ens-components 0.34.0 → 0.35.0
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.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -57305,7 +57305,7 @@ const useMintManager = ({ isTestnet }) => {
|
|
|
57305
57305
|
`${getListManagerApi()}/api/v1/listing/network/${getListingNetwork()}/name/${name}`
|
|
57306
57306
|
).then((res) => res.json());
|
|
57307
57307
|
},
|
|
57308
|
-
[getListManagerApi, getListingNetwork]
|
|
57308
|
+
[getListManagerApi, getListingNetwork, isTestnet]
|
|
57309
57309
|
);
|
|
57310
57310
|
return {
|
|
57311
57311
|
mintClient,
|
|
@@ -61734,7 +61734,8 @@ const SubnameMintForm = ({
|
|
|
61734
61734
|
isChecking: false,
|
|
61735
61735
|
isListingValid: false,
|
|
61736
61736
|
listingChainId: 0,
|
|
61737
|
-
isL2: false
|
|
61737
|
+
isL2: false,
|
|
61738
|
+
error: e?.message || "Failed to load listing details. Please try again later."
|
|
61738
61739
|
});
|
|
61739
61740
|
});
|
|
61740
61741
|
}, [getListingDetails, parentName]);
|
|
@@ -61751,6 +61752,9 @@ const SubnameMintForm = ({
|
|
|
61751
61752
|
}
|
|
61752
61753
|
) });
|
|
61753
61754
|
}
|
|
61755
|
+
if (initState.error) {
|
|
61756
|
+
return /* @__PURE__ */ jsx("div", { className: "ns-subname-mint-form", children: /* @__PURE__ */ jsx(Alert, { variant: "error", position: "vertical", children: /* @__PURE__ */ jsx(Text$1, { size: "sm", children: initState.error }) }) });
|
|
61757
|
+
}
|
|
61754
61758
|
if (!initState.isListingValid) {
|
|
61755
61759
|
return /* @__PURE__ */ jsx("div", { className: "ns-subname-mint-form", children: /* @__PURE__ */ jsx(Alert, { variant: "error", position: "vertical", children: /* @__PURE__ */ jsxs(Text$1, { size: "sm", children: [
|
|
61756
61760
|
"ENS name ",
|
|
@@ -61769,7 +61773,8 @@ const SubnameMintForm = ({
|
|
|
61769
61773
|
isExpirable: initState.isExpirable || false,
|
|
61770
61774
|
onCancel,
|
|
61771
61775
|
onSuccess,
|
|
61772
|
-
onSubnameMinted
|
|
61776
|
+
onSubnameMinted,
|
|
61777
|
+
txConfirmations
|
|
61773
61778
|
}
|
|
61774
61779
|
) });
|
|
61775
61780
|
};
|