@namehash/namehash-ui 1.15.1 → 1.15.2
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/LICENSE +1 -1
- package/dist/index.cjs +43 -60
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -113
- package/dist/index.d.ts +49 -113
- package/dist/index.js +10 -27
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/LICENSE
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2225,7 +2225,6 @@ __export(index_exports, {
|
|
|
2225
2225
|
getEnsManagerAddressDetailsUrl: () => getEnsManagerAddressDetailsUrl,
|
|
2226
2226
|
getEnsManagerNameDetailsUrl: () => getEnsManagerNameDetailsUrl,
|
|
2227
2227
|
getEnsManagerUrl: () => getEnsManagerUrl,
|
|
2228
|
-
getEnsMetadataServiceAvatarUrl: () => getEnsMetadataServiceAvatarUrl,
|
|
2229
2228
|
queryKeys: () => queryKeys,
|
|
2230
2229
|
useEnsNodeProviderOptions: () => useEnsNodeProviderOptions,
|
|
2231
2230
|
useIndexingStatus: () => useIndexingStatus,
|
|
@@ -4315,7 +4314,6 @@ var SUPPORTED_CHAINS = [
|
|
|
4315
4314
|
import_datasources2.ensTestEnvChain,
|
|
4316
4315
|
mainnet,
|
|
4317
4316
|
sepolia,
|
|
4318
|
-
import_datasources2.sepoliaV2Chain,
|
|
4319
4317
|
base,
|
|
4320
4318
|
baseSepolia,
|
|
4321
4319
|
linea,
|
|
@@ -4329,7 +4327,6 @@ var SUPPORTED_CHAINS = [
|
|
|
4329
4327
|
];
|
|
4330
4328
|
var CUSTOM_CHAIN_NAMES = /* @__PURE__ */ new Map([
|
|
4331
4329
|
[import_datasources2.ensTestEnvChain.id, "Ethereum Local (ens-test-env)"],
|
|
4332
|
-
[import_datasources2.sepoliaV2Chain.id, "Sepolia V2 (virtual)"],
|
|
4333
4330
|
[mainnet.id, "Mainnet"],
|
|
4334
4331
|
[sepolia.id, "Ethereum Sepolia"],
|
|
4335
4332
|
[base.id, "Base"],
|
|
@@ -5253,23 +5250,9 @@ function AddressDisplay({ address, className }) {
|
|
|
5253
5250
|
|
|
5254
5251
|
// src/components/identity/EnsAvatar.tsx
|
|
5255
5252
|
var import_boring_avatars = __toESM(require("boring-avatars"), 1);
|
|
5253
|
+
var import_enssdk = require("enssdk");
|
|
5256
5254
|
var React3 = __toESM(require("react"), 1);
|
|
5257
5255
|
|
|
5258
|
-
// src/utils/ensMetadata.ts
|
|
5259
|
-
var import_ensnode_sdk = require("@ensnode/ensnode-sdk");
|
|
5260
|
-
function getEnsMetadataServiceAvatarUrl(name, namespaceId) {
|
|
5261
|
-
switch (namespaceId) {
|
|
5262
|
-
case import_ensnode_sdk.ENSNamespaceIds.Mainnet:
|
|
5263
|
-
return new URL(name, `https://metadata.ens.domains/mainnet/avatar/`);
|
|
5264
|
-
case import_ensnode_sdk.ENSNamespaceIds.Sepolia:
|
|
5265
|
-
return new URL(name, `https://metadata.ens.domains/sepolia/avatar/`);
|
|
5266
|
-
case import_ensnode_sdk.ENSNamespaceIds.SepoliaV2:
|
|
5267
|
-
return null;
|
|
5268
|
-
case import_ensnode_sdk.ENSNamespaceIds.EnsTestEnv:
|
|
5269
|
-
return null;
|
|
5270
|
-
}
|
|
5271
|
-
}
|
|
5272
|
-
|
|
5273
5256
|
// src/components/ui/avatar.tsx
|
|
5274
5257
|
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
5275
5258
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
@@ -5301,7 +5284,7 @@ function AvatarImage({ className, ...props }) {
|
|
|
5301
5284
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
5302
5285
|
var EnsAvatar = ({ name, namespaceId, className, isSquare = false }) => {
|
|
5303
5286
|
const [loadingStatus, setLoadingStatus] = React3.useState("idle");
|
|
5304
|
-
const avatarUrl =
|
|
5287
|
+
const avatarUrl = (0, import_enssdk.getEnsMetadataServiceImageUrl)(name, namespaceId, "avatar");
|
|
5305
5288
|
if (avatarUrl === null) {
|
|
5306
5289
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Avatar, { className, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(EnsAvatarFallback, { name, isSquare }) });
|
|
5307
5290
|
}
|
|
@@ -5342,9 +5325,9 @@ var AvatarLoading = ({ isSquare }) => /* @__PURE__ */ (0, import_jsx_runtime34.j
|
|
|
5342
5325
|
);
|
|
5343
5326
|
|
|
5344
5327
|
// src/components/identity/Identity.tsx
|
|
5345
|
-
var
|
|
5328
|
+
var import_enssdk2 = require("enssdk");
|
|
5346
5329
|
var import_lucide_react = require("lucide-react");
|
|
5347
|
-
var
|
|
5330
|
+
var import_ensnode_sdk2 = require("@ensnode/ensnode-sdk");
|
|
5348
5331
|
|
|
5349
5332
|
// src/utils/blockExplorers.ts
|
|
5350
5333
|
var getBlockExplorerUrl = (chainId) => {
|
|
@@ -5370,16 +5353,16 @@ var getBlockExplorerBlockUrl = (chainId, blockNumber) => {
|
|
|
5370
5353
|
};
|
|
5371
5354
|
|
|
5372
5355
|
// src/utils/ensManager.ts
|
|
5373
|
-
var
|
|
5356
|
+
var import_ensnode_sdk = require("@ensnode/ensnode-sdk");
|
|
5374
5357
|
function getEnsManagerUrl(namespaceId) {
|
|
5375
5358
|
switch (namespaceId) {
|
|
5376
|
-
case
|
|
5359
|
+
case import_ensnode_sdk.ENSNamespaceIds.Mainnet:
|
|
5377
5360
|
return new URL(`https://app.ens.domains/`);
|
|
5378
|
-
case
|
|
5361
|
+
case import_ensnode_sdk.ENSNamespaceIds.Sepolia:
|
|
5379
5362
|
return new URL(`https://sepolia.app.ens.domains/`);
|
|
5380
|
-
case
|
|
5363
|
+
case import_ensnode_sdk.ENSNamespaceIds.SepoliaV2:
|
|
5381
5364
|
return null;
|
|
5382
|
-
case
|
|
5365
|
+
case import_ensnode_sdk.ENSNamespaceIds.EnsTestEnv:
|
|
5383
5366
|
return null;
|
|
5384
5367
|
}
|
|
5385
5368
|
}
|
|
@@ -5535,25 +5518,25 @@ var IdentityTooltip = ({
|
|
|
5535
5518
|
namespaceId,
|
|
5536
5519
|
children
|
|
5537
5520
|
}) => {
|
|
5538
|
-
if (!(0,
|
|
5521
|
+
if (!(0, import_ensnode_sdk2.isResolvedIdentity)(identity)) {
|
|
5539
5522
|
return children;
|
|
5540
5523
|
}
|
|
5541
|
-
const chainDescription = identity.chainId ===
|
|
5524
|
+
const chainDescription = identity.chainId === import_enssdk2.DEFAULT_EVM_CHAIN_ID ? 'the "default" EVM Chain' : getChainName(identity.chainId);
|
|
5542
5525
|
let header;
|
|
5543
5526
|
switch (identity.resolutionStatus) {
|
|
5544
|
-
case
|
|
5527
|
+
case import_ensnode_sdk2.ResolutionStatusIds.Named:
|
|
5545
5528
|
header = `Primary name on ${chainDescription} for address:`;
|
|
5546
5529
|
break;
|
|
5547
|
-
case
|
|
5530
|
+
case import_ensnode_sdk2.ResolutionStatusIds.Unnamed:
|
|
5548
5531
|
header = `Unnamed address on ${chainDescription}:`;
|
|
5549
5532
|
break;
|
|
5550
|
-
case
|
|
5533
|
+
case import_ensnode_sdk2.ResolutionStatusIds.Unknown:
|
|
5551
5534
|
header = `Error resolving address on ${chainDescription}:`;
|
|
5552
5535
|
break;
|
|
5553
5536
|
}
|
|
5554
5537
|
const ensAppAddressDetailsUrl = getEnsManagerAddressDetailsUrl(identity.address, namespaceId);
|
|
5555
5538
|
const body = /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AddressDisplay, { address: identity.address }) });
|
|
5556
|
-
const effectiveChainId = (0,
|
|
5539
|
+
const effectiveChainId = (0, import_ensnode_sdk2.translateDefaultableChainIdToChainId)(identity.chainId, namespaceId);
|
|
5557
5540
|
const chainExplorerUrl = getBlockExplorerAddressDetailsUrl(effectiveChainId, identity.address);
|
|
5558
5541
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Tooltip, { delayDuration: 250, children: [
|
|
5559
5542
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TooltipTrigger, { asChild: true, children }),
|
|
@@ -5566,7 +5549,7 @@ var IdentityTooltip = ({
|
|
|
5566
5549
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "nhui:flex nhui:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
5567
5550
|
ChainIcon,
|
|
5568
5551
|
{
|
|
5569
|
-
chainId: (0,
|
|
5552
|
+
chainId: (0, import_ensnode_sdk2.translateDefaultableChainIdToChainId)(identity.chainId, namespaceId),
|
|
5570
5553
|
height: 24,
|
|
5571
5554
|
width: 24
|
|
5572
5555
|
}
|
|
@@ -5611,15 +5594,15 @@ var IdentityTooltip = ({
|
|
|
5611
5594
|
};
|
|
5612
5595
|
|
|
5613
5596
|
// src/components/identity/Name.tsx
|
|
5614
|
-
var
|
|
5597
|
+
var import_enssdk3 = require("enssdk");
|
|
5615
5598
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
5616
5599
|
function NameDisplay({ name, className = "nhui:font-medium" }) {
|
|
5617
|
-
const beautifiedName = (0,
|
|
5600
|
+
const beautifiedName = (0, import_enssdk3.beautifyName)(name);
|
|
5618
5601
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className, children: beautifiedName });
|
|
5619
5602
|
}
|
|
5620
5603
|
|
|
5621
5604
|
// src/components/identity/ResolveAndDisplayIdentity.tsx
|
|
5622
|
-
var
|
|
5605
|
+
var import_ensnode_sdk6 = require("@ensnode/ensnode-sdk");
|
|
5623
5606
|
|
|
5624
5607
|
// src/ensnode/context.ts
|
|
5625
5608
|
var import_react4 = require("react");
|
|
@@ -5644,7 +5627,7 @@ var import_react_query2 = require("@tanstack/react-query");
|
|
|
5644
5627
|
|
|
5645
5628
|
// src/ensnode/query.ts
|
|
5646
5629
|
var import_react_query = require("@tanstack/react-query");
|
|
5647
|
-
var
|
|
5630
|
+
var import_ensnode_sdk3 = require("@ensnode/ensnode-sdk");
|
|
5648
5631
|
var ASSUME_IMMUTABLE_QUERY = {
|
|
5649
5632
|
staleTime: Infinity,
|
|
5650
5633
|
gcTime: Infinity,
|
|
@@ -5671,7 +5654,7 @@ function createRecordsQueryOptions(config, args) {
|
|
|
5671
5654
|
enabled: true,
|
|
5672
5655
|
queryKey: queryKeys.records(config.client.url.href, args),
|
|
5673
5656
|
queryFn: async () => {
|
|
5674
|
-
const client = new
|
|
5657
|
+
const client = new import_ensnode_sdk3.EnsNodeClient(config.client);
|
|
5675
5658
|
return client.resolveRecords(args.name, args.selection, args);
|
|
5676
5659
|
}
|
|
5677
5660
|
};
|
|
@@ -5681,7 +5664,7 @@ function createPrimaryNameQueryOptions(config, args) {
|
|
|
5681
5664
|
enabled: true,
|
|
5682
5665
|
queryKey: queryKeys.primaryName(config.client.url.href, args),
|
|
5683
5666
|
queryFn: async () => {
|
|
5684
|
-
const client = new
|
|
5667
|
+
const client = new import_ensnode_sdk3.EnsNodeClient(config.client);
|
|
5685
5668
|
return client.resolvePrimaryName(args.address, args.chainId, args);
|
|
5686
5669
|
}
|
|
5687
5670
|
};
|
|
@@ -5691,7 +5674,7 @@ function createPrimaryNamesQueryOptions(config, args) {
|
|
|
5691
5674
|
enabled: true,
|
|
5692
5675
|
queryKey: queryKeys.primaryNames(config.client.url.href, args),
|
|
5693
5676
|
queryFn: async () => {
|
|
5694
|
-
const client = new
|
|
5677
|
+
const client = new import_ensnode_sdk3.EnsNodeClient(config.client);
|
|
5695
5678
|
return client.resolvePrimaryNames(args.address, args);
|
|
5696
5679
|
}
|
|
5697
5680
|
};
|
|
@@ -5701,7 +5684,7 @@ function createIndexingStatusQueryOptions(config) {
|
|
|
5701
5684
|
enabled: true,
|
|
5702
5685
|
queryKey: queryKeys.indexingStatus(config.client.url.href),
|
|
5703
5686
|
queryFn: async () => {
|
|
5704
|
-
const client = new
|
|
5687
|
+
const client = new import_ensnode_sdk3.EnsNodeClient(config.client);
|
|
5705
5688
|
return client.indexingStatus();
|
|
5706
5689
|
}
|
|
5707
5690
|
};
|
|
@@ -5711,7 +5694,7 @@ function createRegistrarActionsQueryOptions(config, args) {
|
|
|
5711
5694
|
enabled: true,
|
|
5712
5695
|
queryKey: queryKeys.registrarActions(config.client.url.href, args),
|
|
5713
5696
|
queryFn: async () => {
|
|
5714
|
-
const client = new
|
|
5697
|
+
const client = new import_ensnode_sdk3.EnsNodeClient(config.client);
|
|
5715
5698
|
return client.registrarActions(args);
|
|
5716
5699
|
}
|
|
5717
5700
|
};
|
|
@@ -5721,7 +5704,7 @@ function createNameTokensQueryOptions(config, args) {
|
|
|
5721
5704
|
enabled: true,
|
|
5722
5705
|
queryKey: queryKeys.nameTokens(config.client.url.href, args),
|
|
5723
5706
|
queryFn: async () => {
|
|
5724
|
-
const client = new
|
|
5707
|
+
const client = new import_ensnode_sdk3.EnsNodeClient(config.client);
|
|
5725
5708
|
return client.nameTokens(args);
|
|
5726
5709
|
}
|
|
5727
5710
|
};
|
|
@@ -5814,7 +5797,7 @@ function useRegistrarActions(parameters = {}) {
|
|
|
5814
5797
|
}
|
|
5815
5798
|
|
|
5816
5799
|
// src/ensnode/hooks/useResolvedIdentity.ts
|
|
5817
|
-
var
|
|
5800
|
+
var import_ensnode_sdk4 = require("@ensnode/ensnode-sdk");
|
|
5818
5801
|
function useResolvedIdentity(parameters) {
|
|
5819
5802
|
const { identity, namespace, accelerate, query: _query = {} } = parameters;
|
|
5820
5803
|
const {
|
|
@@ -5823,10 +5806,10 @@ function useResolvedIdentity(parameters) {
|
|
|
5823
5806
|
...query
|
|
5824
5807
|
} = usePrimaryName({
|
|
5825
5808
|
address: identity.address,
|
|
5826
|
-
chainId: (0,
|
|
5809
|
+
chainId: (0, import_ensnode_sdk4.getResolvePrimaryNameChainIdParam)(
|
|
5827
5810
|
identity.chainId,
|
|
5828
5811
|
// NOTE: defaulting here for typechecking, but enabled prevents fetching before namespace is known
|
|
5829
|
-
namespace ??
|
|
5812
|
+
namespace ?? import_ensnode_sdk4.ENSNamespaceIds.Mainnet
|
|
5830
5813
|
),
|
|
5831
5814
|
accelerate,
|
|
5832
5815
|
// NOTE: Overriding `gcTime` to prevent unbounded memory growth
|
|
@@ -5847,20 +5830,20 @@ function useResolvedIdentity(parameters) {
|
|
|
5847
5830
|
result = identity;
|
|
5848
5831
|
} else if (status === "error") {
|
|
5849
5832
|
result = {
|
|
5850
|
-
resolutionStatus:
|
|
5833
|
+
resolutionStatus: import_ensnode_sdk4.ResolutionStatusIds.Unknown,
|
|
5851
5834
|
chainId: identity.chainId,
|
|
5852
5835
|
address: identity.address
|
|
5853
5836
|
};
|
|
5854
5837
|
} else if (primaryNameData.name === null) {
|
|
5855
5838
|
result = {
|
|
5856
|
-
resolutionStatus:
|
|
5839
|
+
resolutionStatus: import_ensnode_sdk4.ResolutionStatusIds.Unnamed,
|
|
5857
5840
|
chainId: identity.chainId,
|
|
5858
5841
|
address: identity.address,
|
|
5859
5842
|
name: null
|
|
5860
5843
|
};
|
|
5861
5844
|
} else {
|
|
5862
5845
|
result = {
|
|
5863
|
-
resolutionStatus:
|
|
5846
|
+
resolutionStatus: import_ensnode_sdk4.ResolutionStatusIds.Named,
|
|
5864
5847
|
chainId: identity.chainId,
|
|
5865
5848
|
address: identity.address,
|
|
5866
5849
|
name: primaryNameData.name
|
|
@@ -5912,7 +5895,7 @@ function useSwrQuery(options, queryClient) {
|
|
|
5912
5895
|
// src/ensnode/provider.tsx
|
|
5913
5896
|
var import_react_query9 = require("@tanstack/react-query");
|
|
5914
5897
|
var import_react7 = require("react");
|
|
5915
|
-
var
|
|
5898
|
+
var import_ensnode_sdk5 = require("@ensnode/ensnode-sdk");
|
|
5916
5899
|
function EnsNodeInternalProvider({
|
|
5917
5900
|
children,
|
|
5918
5901
|
options
|
|
@@ -5962,10 +5945,10 @@ function EnsNodeProvider(parameters) {
|
|
|
5962
5945
|
);
|
|
5963
5946
|
}
|
|
5964
5947
|
function createEnsNodeProviderOptions(options) {
|
|
5965
|
-
const url = options?.url ? new URL(options.url) :
|
|
5948
|
+
const url = options?.url ? new URL(options.url) : import_ensnode_sdk5.EnsNodeClient.defaultOptions().url;
|
|
5966
5949
|
return {
|
|
5967
5950
|
client: {
|
|
5968
|
-
...
|
|
5951
|
+
...import_ensnode_sdk5.EnsNodeClient.defaultOptions(),
|
|
5969
5952
|
url
|
|
5970
5953
|
}
|
|
5971
5954
|
};
|
|
@@ -6046,7 +6029,7 @@ function DisplayIdentity({
|
|
|
6046
6029
|
let avatar;
|
|
6047
6030
|
let identifier;
|
|
6048
6031
|
const isMobile = useIsMobile();
|
|
6049
|
-
if (!(0,
|
|
6032
|
+
if (!(0, import_ensnode_sdk6.isResolvedIdentity)(identity)) {
|
|
6050
6033
|
avatar = /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6051
6034
|
Skeleton,
|
|
6052
6035
|
{
|
|
@@ -6065,7 +6048,7 @@ function DisplayIdentity({
|
|
|
6065
6048
|
)
|
|
6066
6049
|
}
|
|
6067
6050
|
);
|
|
6068
|
-
} else if (identity.resolutionStatus ===
|
|
6051
|
+
} else if (identity.resolutionStatus === import_ensnode_sdk6.ResolutionStatusIds.Unnamed || identity.resolutionStatus === import_ensnode_sdk6.ResolutionStatusIds.Unknown) {
|
|
6069
6052
|
avatar = /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6070
6053
|
"div",
|
|
6071
6054
|
{
|
|
@@ -6076,7 +6059,7 @@ function DisplayIdentity({
|
|
|
6076
6059
|
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6077
6060
|
ChainIcon,
|
|
6078
6061
|
{
|
|
6079
|
-
chainId: (0,
|
|
6062
|
+
chainId: (0, import_ensnode_sdk6.translateDefaultableChainIdToChainId)(identity.chainId, namespaceId),
|
|
6080
6063
|
height: isMobile && withIdentifier ? 16 : 24,
|
|
6081
6064
|
width: isMobile && withIdentifier ? 16 : 24
|
|
6082
6065
|
}
|
|
@@ -6139,7 +6122,7 @@ function DisplayIdentity({
|
|
|
6139
6122
|
// src/components/registrar-actions/RegistrarActionCard.tsx
|
|
6140
6123
|
var import_lucide_react2 = require("lucide-react");
|
|
6141
6124
|
var import_react8 = require("react");
|
|
6142
|
-
var
|
|
6125
|
+
var import_ensnode_sdk7 = require("@ensnode/ensnode-sdk");
|
|
6143
6126
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
6144
6127
|
function LabeledField({
|
|
6145
6128
|
fieldLabel,
|
|
@@ -6172,7 +6155,7 @@ function ResolveAndDisplayReferrerIdentity({
|
|
|
6172
6155
|
withIdentifier = true,
|
|
6173
6156
|
className
|
|
6174
6157
|
}) {
|
|
6175
|
-
if (!(0,
|
|
6158
|
+
if (!(0, import_ensnode_sdk7.isRegistrarActionReferralAvailable)(referral) || referral.encodedReferrer === import_ensnode_sdk7.ZERO_ENCODED_REFERRER) {
|
|
6176
6159
|
return withAvatar && !withIdentifier ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "nhui:w-10 nhui:h-10" }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "nhui:h-[21px]", children: "-" });
|
|
6177
6160
|
}
|
|
6178
6161
|
if (referral.decodedReferrer === zeroAddress) {
|
|
@@ -6207,7 +6190,7 @@ function ResolveAndDisplayReferrerIdentity({
|
|
|
6207
6190
|
] })
|
|
6208
6191
|
] });
|
|
6209
6192
|
}
|
|
6210
|
-
const referrerIdentity = (0,
|
|
6193
|
+
const referrerIdentity = (0, import_ensnode_sdk7.buildUnresolvedIdentity)(referral.decodedReferrer, namespaceId, chainId);
|
|
6211
6194
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6212
6195
|
ResolveAndDisplayIdentity,
|
|
6213
6196
|
{
|
|
@@ -6286,7 +6269,7 @@ function RegistrarActionCard({
|
|
|
6286
6269
|
}
|
|
6287
6270
|
) : children
|
|
6288
6271
|
);
|
|
6289
|
-
const registrantIdentity = (0,
|
|
6272
|
+
const registrantIdentity = (0, import_ensnode_sdk7.buildUnresolvedIdentity)(registrant, namespaceId, chainId);
|
|
6290
6273
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
6291
6274
|
"div",
|
|
6292
6275
|
{
|
|
@@ -6304,7 +6287,7 @@ function RegistrarActionCard({
|
|
|
6304
6287
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6305
6288
|
LabeledField,
|
|
6306
6289
|
{
|
|
6307
|
-
fieldLabel: type ===
|
|
6290
|
+
fieldLabel: type === import_ensnode_sdk7.RegistrarActionTypes.Registration ? "Registered" : "Renewed",
|
|
6308
6291
|
className: "nhui:w-[15%] nhui:min-w-[110px]",
|
|
6309
6292
|
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "nhui:h-[21px] nhui:font-medium", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6310
6293
|
RelativeTime,
|