Skip to content

Commit

Permalink
some polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
briansztamfater committed Apr 2, 2024
1 parent b0edb0f commit fab45ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns quo.components.wallet.network-link.utils)
(ns quo.components.wallet.network-link.helpers)

(def central-figure-width 63)

Expand Down
10 changes: 5 additions & 5 deletions src/quo/components/wallet/network_link/view.cljs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns quo.components.wallet.network-link.view
(:require
[oops.core :refer [oget]]
[quo.components.wallet.network-link.helpers :as helpers]
[quo.components.wallet.network-link.schema :as component-schema]
[quo.components.wallet.network-link.style :as style]
[quo.components.wallet.network-link.utils :as utils]
[quo.foundations.colors :as colors]
[quo.theme :as quo.theme]
[react-native.core :as rn]
Expand Down Expand Up @@ -56,8 +56,8 @@
destination-color (colors/resolve-color destination theme)
fill-color (colors/theme-colors colors/white colors/neutral-90 theme)
view-box (str "0 0 " @container-width " 58")
side-lines-path (utils/calculate-side-lines-path-1x @container-width)
central-transform (utils/calculate-transform @container-width)]
side-lines-path (helpers/calculate-side-lines-path-1x @container-width)
central-transform (helpers/calculate-transform @container-width)]
[rn/view
{:style style/link-1x-container
:on-layout (fn [e]
Expand Down Expand Up @@ -104,8 +104,8 @@
destination-color (colors/resolve-color destination theme)
fill-color (colors/theme-colors colors/white colors/neutral-90 theme)
view-box (str "0 0 " @container-width " 114")
side-lines-path (utils/calculate-side-lines-path-2x @container-width)
central-transform (utils/calculate-transform @container-width)]
side-lines-path (helpers/calculate-side-lines-path-2x @container-width)
central-transform (helpers/calculate-transform @container-width)]
[rn/view
{:style style/link-2x-container
:on-layout #(reset! container-width
Expand Down
3 changes: 1 addition & 2 deletions src/status_im/contexts/preview/quo/wallet/network_link.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,5 @@
:descriptor descriptor
:component-container-style {:padding-top 40
:align-items :center}}
[rn/view
{:style {:width 103}}
[rn/view {:style {:width 63}}
[quo/network-link @state]]])))

0 comments on commit fab45ea

Please sign in to comment.