Skip to content

Commit

Permalink
Distinguish between owned and free sticker sets
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrbrown committed Sep 13, 2019
1 parent 0232393 commit 52fd656
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/status_im/ui/screens/stickers/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@
:color colors/white}]
[react/text {:style {:color colors/white}
:accessibility-label :sticker-pack-price}
(cond (or owned (zero? price))
(i18n/label :t/install)
:else
(str (money/wei-> :eth price)))])]])))
(cond owned (i18n/label :t/install)
(zero? price) (i18n/label :t/free)
:else (str (money/wei-> :eth price)))])]])))

(defn pack-badge [{:keys [name author price thumbnail preview id installed owned pending] :as pack}]
[react/touchable-highlight {:on-press #(re-frame/dispatch [:navigate-to :stickers-pack pack])}
Expand Down

0 comments on commit 52fd656

Please sign in to comment.