chore: move whiteboards under journals

pull/7453/head
Konstantinos Kaloutas 2022-11-24 10:12:14 +02:00 committed by Tienson Qin
parent 66fc6c5fe1
commit fddaa84597
1 changed files with 11 additions and 11 deletions

View File

@ -361,7 +361,16 @@
(route-handler/sidebar-journals!)
(route-handler/go-to-journals!)))
:icon "calendar"})))
(when enable-whiteboards?
(sidebar-item
{:class "whiteboard"
:title (t :right-side-bar/whiteboards)
:href (rfe/href :whiteboards)
:active (and (not srs-open?) (#{:whiteboard :whiteboards} route-name))
:icon "whiteboard"
:icon-extension? true}))
(when (state/enable-flashcards? (state/get-current-repo))
[:div.flashcards-nav
(flashcards srs-open?)])
@ -378,16 +387,7 @@
:title (t :right-side-bar/all-pages)
:href (rfe/href :all-pages)
:active (and (not srs-open?) (= route-name :all-pages))
:icon "files"})
(when enable-whiteboards?
(sidebar-item
{:class "whiteboard"
:title (t :right-side-bar/whiteboards)
:href (rfe/href :whiteboards)
:active (and (not srs-open?) (#{:whiteboard :whiteboards} route-name))
:icon "whiteboard"
:icon-extension? true}))]]
:icon "files"})]]
[:div.nav-contents-container.flex.flex-col.gap-1.pt-1
{:on-scroll on-contents-scroll}