From 1bfa3cf178d773124781d7ac600163ca47f53d3f Mon Sep 17 00:00:00 2001 From: Julien Eluard Date: Wed, 27 Mar 2019 15:14:27 +0100 Subject: [PATCH] Upgraded to latest pluto Signed-off-by: Julien Eluard --- deps.edn | 2 +- project.clj | 2 +- src/status_im/extensions/core.cljs | 6 +++--- src/status_im/ui/screens/extensions/add/views.cljs | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deps.edn b/deps.edn index 8def66aa3d..833acfe373 100644 --- a/deps.edn +++ b/deps.edn @@ -11,7 +11,7 @@ com.taoensso/timbre {:mvn/version "4.10.0"} hickory {:mvn/version "0.7.1"} com.cognitect/transit-cljs {:mvn/version "0.8.248"} - status-im/pluto {:mvn/version "iteration-4-8"} + status-im/pluto {:mvn/version "iteration-4-9"} mvxcvi/alphabase {:mvn/version "1.0.0"} rasom/cljs-react-navigation {:mvn/version "0.1.4"}} diff --git a/project.clj b/project.clj index deace729b4..79047f0675 100644 --- a/project.clj +++ b/project.clj @@ -11,7 +11,7 @@ [com.taoensso/timbre "4.10.0"] [hickory "0.7.1"] [com.cognitect/transit-cljs "0.8.248"] - [status-im/pluto "iteration-4-8"] + [status-im/pluto "iteration-4-9"] [mvxcvi/alphabase "1.0.0"] [rasom/cljs-react-navigation "0.1.4"]] :plugins [[lein-cljsbuild "1.1.7"] diff --git a/src/status_im/extensions/core.cljs b/src/status_im/extensions/core.cljs index f7c356f75e..2cc58c9cf7 100644 --- a/src/status_im/extensions/core.cljs +++ b/src/status_im/extensions/core.cljs @@ -359,9 +359,9 @@ platform/ios? (str "http://maps.apple.com/?q=" (js/encodeURIComponent text) "&ll=" lat "," lng) platform/android? (str "geo:0,0?q=" lat "," lng "(" (js/encodeURIComponent text) ")") :else (str "http://www.openstreetmap.org/?mlat=" lat "&mlon=" lng))] - (link {:uri uri - :text text - :style style + (link {:uri uri + :text text + :style style :open-in :device}))) (defn list [{:keys [key data item-view]}] diff --git a/src/status_im/ui/screens/extensions/add/views.cljs b/src/status_im/ui/screens/extensions/add/views.cljs index bdfe07962f..f6581e74b9 100644 --- a/src/status_im/ui/screens/extensions/add/views.cljs +++ b/src/status_im/ui/screens/extensions/add/views.cljs @@ -3,7 +3,7 @@ (:require [re-frame.core :as re-frame] [reagent.core :as reagent] [clojure.string :as string] - [pluto.reader.errors :as errors] + [pluto.error :as error] [status-im.extensions.core :as extensions] [status-im.i18n :as i18n] [status-im.ui.components.react :as react] @@ -50,9 +50,9 @@ [react/text (i18n/label :t/none)]] [cartouche {:header (i18n/label :t/errors)} (if errors - (into [react/view] (for [{::errors/keys [type value]} errors] + (into [react/view] (for [{::error/keys [type target]} errors] [react/text - (str (when type (name type)) " " (str value))])) + (str (when type (name type)) " " (when target (name target)))])) [react/text (i18n/label :t/none)])]]] [react/view styles/bottom-container [react/view components.styles/flex]