mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-03 23:16:52 +00:00
feature:
首页、文章页背景色微调; 侧边抽屉完善; 标签组长度调整; 最近文章日期格式化,增加路由高亮,封装; 清除冗余代码;
This commit is contained in:
@@ -7,13 +7,13 @@ import Drawer from '@/components/Drawer'
|
||||
import DrawerRight from '@/components/DrawerRight'
|
||||
import Logo from '@/components/Logo'
|
||||
|
||||
const TopNav = ({ tags, currentTag, post }) => {
|
||||
const TopNav = ({ tags, currentTag, post, posts }) => {
|
||||
const drawer = useRef()
|
||||
const drawerRight = useRef()
|
||||
|
||||
return (<>
|
||||
{/* 侧面抽屉 */}
|
||||
<Drawer post={post} currentTag={currentTag} cRef={drawer} tags={tags} />
|
||||
<Drawer post={post} currentTag={currentTag} cRef={drawer} tags={tags} posts={posts}/>
|
||||
<DrawerRight post={post} cRef={drawerRight}/>
|
||||
|
||||
{/* 导航栏 */}
|
||||
|
||||
Reference in New Issue
Block a user