Skip to content

Commit

Permalink
make lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthkay committed Mar 31, 2023
1 parent 4b26ca4 commit 1b7a721
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 171 deletions.
14 changes: 7 additions & 7 deletions src/status_im2/common/home/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@
(merge button-common-props
{:accessibility-label :show-qr-button
:on-press #(rf/dispatch
[:show-popover
{:view :profile-share
:style {:margin 0}
:disable-touchable-overlay? true
:blur-view? true
:blur-view-props {:blur-amount 20
:blur-type :dark}}])})
[:show-popover
{:view :profile-share
:style {:margin 0}
:disable-touchable-overlay? true
:blur-view? true
:blur-view-props {:blur-amount 20
:blur-type :dark}}])})
:i/qr-code]
[rn/view
[unread-indicator]
Expand Down
119 changes: 63 additions & 56 deletions src/status_im2/contexts/share/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,29 @@
(def tabs
{:padding-left screen-padding})

(defn qr-code-container [window-width & wallet-tab]
{:padding 12
:border-radius qr-container-radius
:margin-top 12
:margin-bottom 4
(defn qr-code-container
[window-width & wallet-tab]
{:padding 12
:border-radius qr-container-radius
:margin-top 12
:margin-bottom 4
:margin-horizontal (* window-width 0.053)
:background-color colors/white-opa-5
:flex-direction :column
:justify-content :center
:align-items :center})
:background-color colors/white-opa-5
:flex-direction :column
:justify-content :center
:align-items :center})


(defn emoji-hash-container [window-width]
{:border-radius emoji-hash-container-radius
:margin-top 12
:padding-vertical :1%
(defn emoji-hash-container
[window-width]
{:border-radius emoji-hash-container-radius
:margin-top 12
:padding-vertical :1%
:margin-horizontal (* window-width 0.053)
:background-color colors/white-opa-5
:flex-direction :row
:justify-content :space-between
:align-items :center})
:background-color colors/white-opa-5
:flex-direction :row
:justify-content :space-between
:align-items :center})



Expand All @@ -53,76 +55,81 @@


(def profile-address-label
{:align-self :flex-start
:color colors/white-opa-40
{:align-self :flex-start
:color colors/white-opa-40
:padding-top 10})

(def copyable-text-container-style
{:background-color :transparent
})
})

(defn profile-address-content [max-width]
{:color colors/white
:align-self :flex-start
(defn profile-address-content
[max-width]
{:color colors/white
:align-self :flex-start
:padding-top 2
:font-weight :500
:font-size 16
:max-width max-width})
:font-size 16
:max-width max-width})

(def address-share-button-container
{:padding 8
:position :absolute
{:padding 8
:position :absolute
:background-color colors/white-opa-5
:border-radius 10
:right 14
:top 10})
:border-radius 10
:right 14
:top 10})



(defn profile-address-container [qr-size]
{:flex-direction :row
(defn profile-address-container
[qr-size]
{:flex-direction :row
:justify-content :space-between
:margin-top 6
:width qr-size})
:margin-top 6
:width qr-size})

(def emoji-hash-label
{:color colors/white-opa-40
{:color colors/white-opa-40
:padding-left 12
:margin-top 8})
:margin-top 8})

(def share-button-container
{:flex-direction :column
{:flex-direction :column
:justify-content :center
:align-items :center
:padding-left 12
})
:align-items :center
:padding-left 12
})

(defn qr-image [qr-size]
(defn qr-image
[qr-size]
{:width qr-size
:height qr-size
:border-radius 12})

(defn set-custom-width [section-width]
(defn set-custom-width
[section-width]
{:width section-width})

(defn emoji-hash-content [max-width]
{:color colors/white
:align-self :flex-start
:padding-top 4
(defn emoji-hash-content
[max-width]
{:color colors/white
:align-self :flex-start
:padding-top 4
:padding-bottom 8
:padding-left 12
:font-weight :500
:font-size 14
:max-width max-width})
:padding-left 12
:font-weight :500
:font-size 14
:max-width max-width})

(def emoji-share-button-container
{:padding 8
:position :absolute
{:padding 8
:position :absolute
:background-color colors/white-opa-5
:border-radius 10
:right 14
:top 2})
:border-radius 10
:right 14
:top 2})

(def tabs-container
{:padding-horizontal screen-padding
:margin-vertical 8})
:margin-vertical 8})
Loading

0 comments on commit 1b7a721

Please sign in to comment.