Skip to content

Commit

Permalink
UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferossgp committed Jul 14, 2020
1 parent 08cc30f commit bcf0a7a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion src/status_im/acquisition/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
(when (nil? data)
(-> (getInstallReferrer)
(.then (fn [_]
(re-frame/dispatch [::has-referrer data "29b5740a317a4b1a9b97" ])))))))
(re-frame/dispatch [::has-referrer data "29b5740a317a4b1a9b97"])))))))
(.catch (fn [error]
(log/error "[async-storage]" error))))))

Expand Down
90 changes: 45 additions & 45 deletions src/status_im/ui/components/invite/accept.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -35,48 +35,48 @@
(mapv (fn [v i k] [k v i])
(get starter-pack-amount :tokens-amount)
(range)))]
[rn/view
[rn/view {:style {:align-items :center
:padding-vertical 16
:padding-horizontal 16}}
[rn/view {:flex-direction :row
:padding-left 20
:height 40}
(for [[{name :name
{source :source} :icon} _ i] tokens]
^{:key name}
[rn/image {:source (if (fn? source) (source) source)
:style {:width 40
:height 40
:left (* i -20)}}])]
[rn/view {:style {:padding 8}}
[quo/text {:style {:margin-bottom 8}
:align :center
:size :x-large}
(i18n/label :t/advertiser-starter-pack-title)]
[quo/text {:align :center}
(i18n/label :t/advertiser-starter-pack-description)]]
[rn/view {:style {:border-radius 8
:border-width 1
:border-color colors/gray-lighter
:width "100%"
:margin-vertical 8
:padding-vertical 8
:padding-horizontal 12}}
(for [[k v] tokens]
^{:key (:name k)}
[perk k v])]
[rn/view {:style {:margin-vertical 8}}
[quo/button {:on-press #(re-frame/dispatch [::acquisition/advertiser-decision :accept])}
(i18n/label :t/advertiser-starter-pack-accept)]]
[quo/button {:type :secondary
:on-press #(re-frame/dispatch [::acquisition/advertiser-decision :decline])}
(i18n/label :t/advertiser-starter-pack-decline)]
[rn/view {:padding-vertical 8}
[quo/text {:color :secondary
:align :center
:size :small}
(i18n/label :t/invite-privacy-policy1)
[quo/text {:color :link
:on-press #(re-frame/dispatch [::invite/terms-and-conditions])}
(i18n/label :t/invite-privacy-policy2)]]]]])))
[rn/view
[rn/view {:style {:align-items :center
:padding-vertical 16
:padding-horizontal 16}}
[rn/view {:flex-direction :row
:padding-left 20
:height 40}
(for [[{name :name
{source :source} :icon} _ i] tokens]
^{:key name}
[rn/image {:source (if (fn? source) (source) source)
:style {:width 40
:height 40
:left (* i -20)}}])]
[rn/view {:style {:padding 8}}
[quo/text {:style {:margin-bottom 8}
:align :center
:size :x-large}
(i18n/label :t/advertiser-starter-pack-title)]
[quo/text {:align :center}
(i18n/label :t/advertiser-starter-pack-description)]]
[rn/view {:style {:border-radius 8
:border-width 1
:border-color colors/gray-lighter
:width "100%"
:margin-vertical 8
:padding-vertical 8
:padding-horizontal 12}}
(for [[k v] tokens]
^{:key (:name k)}
[perk k v])]
[rn/view {:style {:margin-vertical 8}}
[quo/button {:on-press #(re-frame/dispatch [::acquisition/advertiser-decision :accept])}
(i18n/label :t/advertiser-starter-pack-accept)]]
[quo/button {:type :secondary
:on-press #(re-frame/dispatch [::acquisition/advertiser-decision :decline])}
(i18n/label :t/advertiser-starter-pack-decline)]
[rn/view {:padding-vertical 8}
[quo/text {:color :secondary
:align :center
:size :small}
(i18n/label :t/invite-privacy-policy1)
[quo/text {:color :link
:on-press #(re-frame/dispatch [::invite/terms-and-conditions])}
(i18n/label :t/invite-privacy-policy2)]]]]])))

0 comments on commit bcf0a7a

Please sign in to comment.