fix: 修复 eslint 报错

This commit is contained in:
LooseLi
2025-05-26 18:11:45 +08:00
parent 1f691818f8
commit 3366dd4a6c
7 changed files with 108 additions and 103 deletions

View File

@@ -7,10 +7,12 @@ import Link from 'next/link'
* @returns
*/
export default function ArticleAround({ prev, next }) {
const { locale } = useGlobal()
if (!prev || !next) {
return <></>
}
const { locale } = useGlobal()
return (
<section className='text-gray-800 dark:text-gray-400 flex items-center justify-between gap-x-3 my-4'>
<Link