Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarBasem committed Nov 27, 2023
1 parent aed578b commit 1980c63
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 72 deletions.
63 changes: 0 additions & 63 deletions src/status_im2/contexts/wallet/account/tabs/view.cljs
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
(ns status-im2.contexts.wallet.account.tabs.view
(:require
<<<<<<< HEAD
<<<<<<< HEAD
[quo.theme]
=======
[clojure.string :as string]
>>>>>>> 500f66b63 (updates)
=======
>>>>>>> df7a5e7cd (review)
[react-native.core :as rn]
[status-im2.common.resources :as resources]
[status-im2.contexts.wallet.account.tabs.about.view :as about]
[status-im2.contexts.wallet.account.tabs.dapps.view :as dapps]
[status-im2.contexts.wallet.common.activity-tab.view :as activity]
Expand All @@ -19,63 +10,10 @@
[utils.i18n :as i18n]
[utils.re-frame :as rf]))

<<<<<<< HEAD
(defn prepare-token
[{:keys [symbol marketValuesPerCurrency] :as item} color]
(let [fiat-value (utils/total-per-token item)
marketValues (:usd marketValuesPerCurrency)
{:keys [price changePct24hour]} marketValues
fiat-change (* fiat-value (/ changePct24hour (+ 100 changePct24hour)))]
{:token (keyword (string/lower-case symbol))
:state :default
:status (if (pos? changePct24hour)
:positive
(if (neg? changePct24hour) :negative :empty))
:customization-color color
:values {:crypto-value (.toFixed (* fiat-value price) 2)
:fiat-value (utils/prettify-balance fiat-value)
:percentage-change (.toFixed changePct24hour 2)
:fiat-change (utils/prettify-balance fiat-change)}}))

(defn parse-tokens
[tokens color]
(vec (map #(prepare-token % color) tokens)))

<<<<<<< HEAD
(defn- view-internal
[{:keys [selected-tab theme]}]
(case selected-tab
=======
=======
>>>>>>> df7a5e7cd (review)
(defn view
[{:keys [selected-tab]}]
(let [tokens (rf/sub [:wallet/account-token-values])]
(case selected-tab
<<<<<<< HEAD
>>>>>>> 500f66b63 (updates)
:assets [rn/flat-list
{:render-fn token-value/view
:data temp/tokens
:content-container-style {:padding-horizontal 8}}]
:collectibles [collectibles/view]
:activity [activity/view]
:permissions [empty-tab/view
{:title (i18n/label :t/no-permissions)
:description (i18n/label :t/no-collectibles-description)
:image (resources/get-image
(quo.theme/theme-value :no-permissions-light
:no-permissions-dark
theme))}]
:dapps [dapps/view]
<<<<<<< HEAD
[about/view]))

(def view (quo.theme/with-theme view-internal))
=======
[about/view])))
>>>>>>> 500f66b63 (updates)
=======
:assets [rn/flat-list
{:render-fn token-value/view
:data tokens
Expand All @@ -88,4 +26,3 @@
:placeholder? true}]
:dapps [dapps/view]
[about/view])))
>>>>>>> 882153523 (wallet: account real data)
9 changes: 0 additions & 9 deletions src/status_im2/contexts/wallet/common/temp.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
:percentage-change "0.00%"
:networks networks})

<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> b12d19602 (lint)
(def tokens
[{:token :snt
:state :default
Expand All @@ -66,11 +62,7 @@
:fiat-value "€0.00"
:percentage-change "0.00"
:fiat-change "€0.00"}}])
<<<<<<< HEAD
=======
=======

>>>>>>> b12d19602 (lint)
(def collectibles
[{:image (status.resources/get-mock-image :collectible1)
:id 1}
Expand Down Expand Up @@ -120,7 +112,6 @@
[{:network-name :ethereum :short-name "eth"}
{:network-name :optimism :short-name "opt"}
{:network-name :arbitrum :short-name "arb1"}])
>>>>>>> 882153523 (wallet: account real data)

(def address "0x39cf6E0Ba4C4530735616e1Ee7ff5FbCB726fBd4")

Expand Down

0 comments on commit 1980c63

Please sign in to comment.