Skip to content

Commit

Permalink
enable links to public tags look up page
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Nov 6, 2024
1 parent 7895798 commit 800a85c
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 800a85c

Please sign in to comment.