mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 15:10:32 +00:00
Update NavBar.js
add a darkmodebutton on navbar
This commit is contained in:
@@ -3,6 +3,7 @@ import Logo from './Logo'
|
|||||||
import throttle from 'lodash.throttle'
|
import throttle from 'lodash.throttle'
|
||||||
import RandomPostButton from './RandomPostButton'
|
import RandomPostButton from './RandomPostButton'
|
||||||
import SearchButton from './SearchButton'
|
import SearchButton from './SearchButton'
|
||||||
|
import DarkModeButton from './DarkModeButton'
|
||||||
import SlideOver from './SlideOver'
|
import SlideOver from './SlideOver'
|
||||||
import ReadingProgress from './ReadingProgress'
|
import ReadingProgress from './ReadingProgress'
|
||||||
import { MenuListTop } from './MenuListTop'
|
import { MenuListTop } from './MenuListTop'
|
||||||
@@ -145,6 +146,7 @@ const NavBar = props => {
|
|||||||
<div className='flex flex-shrink-0 justify-center items-center space-x-1'>
|
<div className='flex flex-shrink-0 justify-center items-center space-x-1'>
|
||||||
<RandomPostButton {...props} />
|
<RandomPostButton {...props} />
|
||||||
<SearchButton />
|
<SearchButton />
|
||||||
|
<DarkModeButton />
|
||||||
<ReadingProgress />
|
<ReadingProgress />
|
||||||
|
|
||||||
{/* 移动端菜单按钮 */}
|
{/* 移动端菜单按钮 */}
|
||||||
|
|||||||
Reference in New Issue
Block a user