fix gitbook build

This commit is contained in:
tangly1024
2023-07-08 13:20:20 +08:00
parent 10199ed983
commit 0cc92c26a4
6 changed files with 23 additions and 18 deletions

View File

@@ -10,6 +10,7 @@ import NavPostList from './NavPostList'
*/
const PageNavDrawer = (props) => {
const { pageNavVisible, changePageNavVisible } = useGitBookGlobal()
const { filteredPosts } = props
const switchVisible = () => {
changePageNavVisible(!pageNavVisible)
}
@@ -22,7 +23,7 @@ const PageNavDrawer = (props) => {
' overflow-y-hidden shadow-card w-72 duration-200 fixed left-1 top-16 rounded py-2 bg-white dark:bg-gray-600'}>
<div className='dark:text-gray-400 text-gray-600 h-96 overflow-y-scroll p-3'>
{/* 所有文章列表 */}
<NavPostList />
<NavPostList filteredPosts={filteredPosts} />
</div>
</div>
</div>