fix: remove used open-fn

This commit is contained in:
Tienson Qin
2024-10-12 19:36:51 +08:00
parent 0223ade6d5
commit 3f0222e74d
2 changed files with 5 additions and 8 deletions

View File

@@ -852,8 +852,7 @@
(fn [_e]
(state/set-state! :editor/latest-shortcut nil)))))
[state route-match main-content']
(let [{:keys [open-fn]} state
current-repo (state/sub :git/current-repo)
(let [current-repo (state/sub :git/current-repo)
granted? (state/sub [:nfs/user-granted? (state/get-current-repo)])
theme (state/sub :ui/theme)
accent-color (some-> (state/sub :ui/radix-color) (name))
@@ -926,8 +925,7 @@
[:div.#app-container
[:div#left-container
{:class (if (state/sub :ui/sidebar-open?) "overflow-hidden" "w-full")}
(header/header {:open-fn open-fn
:light? light?
(header/header {:light? light?
:current-repo current-repo
:logged? logged?
:page? page?