Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayesivan committed May 24, 2024
1 parent f63d714 commit af89f4c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
5 changes: 5 additions & 0 deletions src/status_im/contexts/wallet/sheets/buy_token/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
{:padding-horizontal 8
:min-height min-height
:padding-bottom 8})

(def tabs
{:margin-horizontal 20
:margin-top 8
:margin-bottom 12})
16 changes: 7 additions & 9 deletions src/status_im/contexts/wallet/sheets/buy_token/view.cljs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(ns status-im.contexts.wallet.sheets.buy-token.view
(:require [quo.core :as quo]
(:require [oops.core :as oops]
[quo.core :as quo]
[react-native.core :as rn]
[status-im.contexts.wallet.sheets.buy-token.style :as style]
[status-im.feature-flags :as ff]
[utils.i18n :as i18n]
[oops.core :as oops]
[utils.re-frame :as rf]
[status-im.feature-flags :as ff]))
[utils.re-frame :as rf]))

(defn- crypto-on-ramp-item
[{:keys [name description fees logo-url site-url]}]
Expand Down Expand Up @@ -37,19 +37,17 @@
(rf/dispatch [:wallet/get-crypto-on-ramps])))
(let [crypto-on-ramps (rf/sub [:wallet/crypto-on-ramps])
crypto-recurrent []
[selected-tab set-selected-tab] (rn/use-state initial-tab)
[min-height set-min-height] (rn/use-state 0)
on-layout (rn/use-callback
#(set-min-height
(oops/oget % :nativeEvent :layout :height)))
[selected-tab set-selected-tab] (rn/use-state initial-tab)]
(oops/oget % :nativeEvent :layout :height)))]
[:<>
[quo/drawer-top {:title (i18n/label :t/buy-assets)}]
(when (ff/enabled? ::ff/wallet.buy-recurrent-assets)
[quo/segmented-control
{:size 32
:container-style {:margin-horizontal 20
:margin-top 8
:margin-bottom 12}
:container-style style/tabs
:default-active initial-tab
:on-change set-selected-tab
:data tabs}])
Expand Down

0 comments on commit af89f4c

Please sign in to comment.