disable tag page links

This commit is contained in:
isstuev
2024-10-08 11:58:14 +03:00
parent c403d92433
commit e889cc854b
+7 -7
View File
@@ -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) {
@@ -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 } }),
// };
// }
}