feat: change all Link component to SmartLink

Close #3512
This commit is contained in:
anime
2025-07-24 15:06:39 +08:00
parent fc4817e669
commit ba951cd2aa
338 changed files with 1381 additions and 1381 deletions

View File

@@ -1,4 +1,4 @@
import Link from 'next/link'
import SmartLink from '@/components/SmartLink'
import { useMediumGlobal } from '..'
import JumpToTopButton from './JumpToTopButton'
@@ -17,11 +17,11 @@ export default function BottomMenuBar({ post, className }) {
className
}>
<div className='flex justify-between h-full shadow-card'>
<Link href='/search' passHref legacyBehavior>
<SmartLink href='/search' passHref legacyBehavior>
<div className='flex w-full items-center justify-center cursor-pointer'>
<i className='fas fa-search' />
</div>
</Link>
</SmartLink>
<div className='flex w-full items-center justify-center cursor-pointer z-20'>
<JumpToTopButton />
</div>
@@ -33,11 +33,11 @@ export default function BottomMenuBar({ post, className }) {
</div>
)}
{!showTocButton && (
<Link href='/' passHref legacyBehavior>
<SmartLink href='/' passHref legacyBehavior>
<div className='flex w-full items-center justify-center cursor-pointer'>
<i className='fas fa-home' />
</div>
</Link>
</SmartLink>
)}
</div>
</div>