status-react/src/status_im/popover/core.cljs

15 lines
383 B
Plaintext
Raw Normal View History

(ns status-im.popover.core
(:require [status-im.utils.fx :as fx]
[status-im.utils.handlers :as handlers]))
(fx/defn show-popover
{:events [:show-popover]}
[{:keys [db]} value]
{:db (assoc db :popover/popover value)
:dismiss-keyboard nil})
(fx/defn hide-popover
{:events [:hide-popover]}
[{:keys [db]}]
{:db (dissoc db :popover/popover)})