diff --git a/src/status_im/acquisition/core.cljs b/src/status_im/acquisition/core.cljs index 5c8e0b1a182..5b838235a77 100644 --- a/src/status_im/acquisition/core.cljs +++ b/src/status_im/acquisition/core.cljs @@ -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)))))) diff --git a/src/status_im/ui/components/invite/accept.cljs b/src/status_im/ui/components/invite/accept.cljs index f88740cdad2..309c1264c73 100644 --- a/src/status_im/ui/components/invite/accept.cljs +++ b/src/status_im/ui/components/invite/accept.cljs @@ -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)]]]]])))