From 8c349a3038017ba2a0274094cccce89602656741 Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Wed, 22 May 2019 13:53:11 +0200 Subject: [PATCH] [#8239] App crash when submit cryptokitties with different than it's valid domain Signed-off-by: Andrey Shovkoplyas --- .../ui/screens/browser/site_blocked/views.cljs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/status_im/ui/screens/browser/site_blocked/views.cljs b/src/status_im/ui/screens/browser/site_blocked/views.cljs index 62afc1c193..3be32a8fa0 100644 --- a/src/status_im/ui/screens/browser/site_blocked/views.cljs +++ b/src/status_im/ui/screens/browser/site_blocked/views.cljs @@ -8,11 +8,6 @@ [status-im.ui.screens.browser.site-blocked.styles :as styles]) (:require-macros [status-im.utils.views :as views])) -(defn chat-link [] - [react/text {:on-press #(.openURL react/linking "status-im://chat/public/status") - :style styles/chat-link-text} - "#status"]) - (views/defview view [{:keys [can-go-back?]}] [react/scroll-view {:keyboard-should-persist-taps :always :bounces false @@ -21,10 +16,12 @@ [vector-icons/icon :main-icons/info {:color colors/red}] [react/text {:style styles/title-text} (i18n/label :t/browsing-site-blocked-title)] - [react/text {:style styles/description-text} + [react/nested-text {:style styles/description-text} (i18n/label :t/browsing-site-blocked-description1) - [chat-link] - [react/text (i18n/label :t/browsing-site-blocked-description2)]] + [{:on-press #(.openURL react/linking "status-im://chat/public/status") + :style styles/chat-link-text} + "#status"] + (i18n/label :t/browsing-site-blocked-description2)] [react/view styles/buttons-container [components.common/button {:on-press (fn [] (let [handler (if can-go-back?