Skip to content

Commit

Permalink
disable tag page links
Browse files Browse the repository at this point in the history
  • Loading branch information
isstuev committed Oct 8, 2024
1 parent a9d18fb commit 2ce0c41
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ui/shared/EntityTags/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { EntityTag } from './types';

import { route } from 'nextjs-routes';
// import { route } from 'nextjs-routes';

export function getTagLinkParams(data: EntityTag): { type: 'external' | 'internal'; href: string } | undefined {
if (data.meta?.warpcastHandle) {
Expand All @@ -17,10 +17,10 @@ export function getTagLinkParams(data: EntityTag): { type: 'external' | 'interna
};
}

if (data.tagType === 'generic' || data.tagType === 'protocol') {
return {
type: 'internal',
href: route({ pathname: '/accounts/label/[slug]', query: { slug: data.slug, tagType: data.tagType, tagName: data.name } }),
};
}
// if (data.tagType === 'generic' || data.tagType === 'protocol') {
// return {
// type: 'internal',
// href: route({ pathname: '/accounts/label/[slug]', query: { slug: data.slug, tagType: data.tagType, tagName: data.name } }),
// };
// }
}

0 comments on commit 2ce0c41

Please sign in to comment.