Fix close button not working

This commit is contained in:
ibrahem 2022-11-25 22:06:02 +02:00
parent bc51a59774
commit 0f0ce0d7bd
No known key found for this signature in database
GPG Key ID: 429A111E76884CDB
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
(defn default-navigation [modal? {:keys [on-press label icon]}]
(cond-> {:icon (if modal? :main-icons/close :main-icons/arrow-left)
:accessibility-label :back-button
:on-press #(re-frame/dispatch [:navigate-back])}
:on-press #(re-frame/dispatch [:bottom-sheet/hide :navigate-back])}
on-press
(assoc :on-press on-press)