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