Skip to content

Commit

Permalink
Update on-press on collectible
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
  • Loading branch information
smohamedjavid committed Aug 2, 2023
1 parent 07336ed commit fb3de9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/quo2/components/profile/collectible/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@
[remaining-tiles (- (count remaining-images) 3)]])]]))))

(defn collectible
[{:keys [images]}]
[{:keys [images on-press]}]
[rn/view {:style style/tile-outer-container}
[rn/view {:style style/tile-inner-container}
[rn/pressable
{:on-press on-press
:style style/tile-inner-container}
[tile-container {:images images}]]])
4 changes: 3 additions & 1 deletion src/status_im2/contexts/quo_preview/profile/collectible.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
[rn/view
{:padding-vertical 100
:align-items :center}
[quo/collectible {:images images-to-show}]]]))))
[quo/collectible
{:images images-to-show
:on-press #(js/alert "Pressed")}]]]))))

(defn preview-collectible
[]
Expand Down

0 comments on commit fb3de9e

Please sign in to comment.