* add functionality * update condition
This commit is contained in:
parent
550fa04e33
commit
be618bfafe
|
@ -41,10 +41,12 @@
|
||||||
|
|
||||||
(defn view
|
(defn view
|
||||||
[item]
|
[item]
|
||||||
|
(let [{:keys [watch-only?]} (rf/sub [:wallet/current-viewing-account])]
|
||||||
[quo/token-value
|
[quo/token-value
|
||||||
(merge item
|
(cond-> item
|
||||||
{:on-long-press
|
(not watch-only?)
|
||||||
|
(assoc :on-long-press
|
||||||
#(rf/dispatch
|
#(rf/dispatch
|
||||||
[:show-bottom-sheet
|
[:show-bottom-sheet
|
||||||
{:content (fn [] [token-value-drawer item])
|
{:content (fn [] [token-value-drawer item])
|
||||||
:selected-item (fn [] [quo/token-value item])}])})])
|
:selected-item (fn [] [quo/token-value item])}])))]))
|
||||||
|
|
Loading…
Reference in New Issue