Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Pau1fitz committed Jan 23, 2024
1 parent 8ade9aa commit 8c9bcad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/status_im/contexts/shell/share/wallet/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
[legacy.status-im.ui.components.colors :as colors]))

(defn indicator-wrapper-style
[is-active]
[active?]
{:width 8
:height 8
:border-radius 4
:background-color colors/white
:opacity (if is-active 1.0 0.5)})
:opacity (if active? 1.0 0.5)})

(def indicator-list-style
{:display :flex
Expand Down
10 changes: 5 additions & 5 deletions src/status_im/contexts/shell/share/wallet/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@
(def wallet-qr-code-item (memoize wallet-qr-code-item-internal))

(defn- indicator
[is-active]
[active?]
[rn/view
{:style (wallet-style/indicator-wrapper-style is-active)}])
{:style (wallet-style/indicator-wrapper-style active?)}])

(defn- indicator-list
[n current-index]
[indicator-count current-index]
[rn/view
{:style wallet-style/indicator-list-style}
(for [i (range n)]
(for [i (range indicator-count)]
^{:key i} [indicator (= current-index i)])])

(defn render-item
Expand All @@ -108,7 +108,7 @@
[rn/flat-list
{:horizontal true
:deceleration-rate 0.9
:snap-to-alignment "start"
:snap-to-alignment :start
:snap-to-interval (- width 30)
:disable-interval-momentum true
:scroll-event-throttle 64
Expand Down

0 comments on commit 8c9bcad

Please sign in to comment.