electron: simplify the header

This commit is contained in:
Tienson Qin
2021-01-26 14:55:56 +08:00
parent 8500afb849
commit 5c401f2bd3
6 changed files with 154 additions and 139 deletions

View File

@@ -79,7 +79,7 @@
child])
(rum/defc dropdown-with-links
[content-fn links {:keys [modal-class links-header z-index] :as opts}]
[content-fn links {:keys [modal-class links-header links-footer z-index] :as opts}]
(dropdown
content-fn
(fn [{:keys [close-fn] :as state}]
@@ -100,7 +100,8 @@
]]
(rum/with-key
(menu-link new-options child)
title)))])
title)))
(when links-footer links-footer)])
opts))
(defn button