Fix links for next 13.
This commit is contained in:
@ -7,10 +7,10 @@ const CustomLink = ({ href, ...rest }) => {
|
||||
|
||||
if (isInternalLink) {
|
||||
return (
|
||||
<Link href={href}>
|
||||
<a {...rest} />
|
||||
</Link>
|
||||
)
|
||||
(<Link href={href} {...rest}>
|
||||
|
||||
</Link>)
|
||||
);
|
||||
}
|
||||
|
||||
if (isAnchorLink) {
|
||||
|
||||
@ -3,12 +3,14 @@ import kebabCase from '@/lib/utils/kebabCase'
|
||||
|
||||
const Tag = ({ text }) => {
|
||||
return (
|
||||
<Link href={`/tags/${kebabCase(text)}`}>
|
||||
<a className="mr-3 text-sm font-medium uppercase text-primary-800 hover:text-primary-900 dark:hover:text-primary-400">
|
||||
{text.split(' ').join('-')}
|
||||
</a>
|
||||
</Link>
|
||||
)
|
||||
(<Link
|
||||
href={`/tags/${kebabCase(text)}`}
|
||||
className="mr-3 text-sm font-medium uppercase text-primary-800 hover:text-primary-900 dark:hover:text-primary-400">
|
||||
|
||||
{text.split(' ').join('-')}
|
||||
|
||||
</Link>)
|
||||
);
|
||||
}
|
||||
|
||||
export default Tag
|
||||
|
||||
Reference in New Issue
Block a user