mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-01 15:10:14 +00:00
small fix
This commit is contained in:
@@ -6,9 +6,6 @@ import { useEffect, useState } from 'react'
|
|||||||
import CONFIG from '../config'
|
import CONFIG from '../config'
|
||||||
|
|
||||||
export default function ArticleCopyright () {
|
export default function ArticleCopyright () {
|
||||||
if (!CONFIG.ARTICLE_COPYRIGHT) {
|
|
||||||
return <></>
|
|
||||||
}
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const [path, setPath] = useState(BLOG.LINK + router.asPath)
|
const [path, setPath] = useState(BLOG.LINK + router.asPath)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -16,6 +13,11 @@ export default function ArticleCopyright () {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const { locale } = useGlobal()
|
const { locale } = useGlobal()
|
||||||
|
|
||||||
|
if (!CONFIG.ARTICLE_COPYRIGHT) {
|
||||||
|
return <></>
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="dark:text-gray-300 mt-6 mx-1 ">
|
<section className="dark:text-gray-300 mt-6 mx-1 ">
|
||||||
<ul className="overflow-x-auto whitespace-nowrap text-sm dark:bg-gray-900 bg-gray-100 p-5 leading-8 border-l-2 border-indigo-500">
|
<ul className="overflow-x-auto whitespace-nowrap text-sm dark:bg-gray-900 bg-gray-100 p-5 leading-8 border-l-2 border-indigo-500">
|
||||||
@@ -37,5 +39,5 @@ export default function ArticleCopyright () {
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user