Skip to content

Commit

Permalink
fix(network): use host for name instead of resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Dec 16, 2024
1 parent edcb128 commit 78634f4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/cards/ARNSCard/ARNSCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const protocol = 'https';

function ARNSCard({
domain,
gateway = NETWORK_DEFAULTS.ARNS.RESOLVER,
gateway = NETWORK_DEFAULTS.ARNS.HOST,
imageUrl,
}: Omit<ARNSMapping, 'processId'> & { gateway?: string; imageUrl: string }) {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/data-display/tables/DomainsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ const DomainsTable = ({
<Link
className="link gap-2 w-fit"
to={`https://${encodeDomainToASCII(row.getValue('name'))}.${
NETWORK_DEFAULTS.ARNS.RESOLVER
NETWORK_DEFAULTS.ARNS.HOST
}`}
target="_blank"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/data-display/tables/UndernamesSubtable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const UndernamesSubtable = ({
to={`https://${encodeDomainToASCII(
rowValue,
)}_${encodeDomainToASCII(arnsDomain ?? '')}.${
NETWORK_DEFAULTS.ARNS.RESOLVER
NETWORK_DEFAULTS.ARNS.HOST
}`}
target="_blank"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/data-display/tables/UndernamesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ const UndernamesTable = ({
to={`https://${encodeDomainToASCII(
rowValue,
)}_${encodeDomainToASCII(arnsDomain ?? '')}.${
NETWORK_DEFAULTS.ARNS.RESOLVER
NETWORK_DEFAULTS.ARNS.HOST
}`}
target="_blank"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/inputs/Search/HomeSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function HomeSearch() {
<div className="flex flex-row w-full justify-between mt-4">
<span className="text-xl text-grey">
{decodeDomainToASCII(domainQuery)}.
{NETWORK_DEFAULTS.ARNS.RESOLVER}
{NETWORK_DEFAULTS.ARNS.HOST}
</span>
<button
className="text-[12px] text-white whitespace-nowrap flex items-center"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const NETWORK_DEFAULTS = {
GRAPHQL_URL: ARWEAVE_GRAPHQL_URL,
},
ARNS: {
RESOLVER: 'ar.io',
HOST: 'ar.io',
},
};

Expand Down

0 comments on commit 78634f4

Please sign in to comment.