diff --git a/components/src/status_im/ui/components/react.cljs b/components/src/status_im/ui/components/react.cljs index 1693ed655b..9553758a04 100644 --- a/components/src/status_im/ui/components/react.cljs +++ b/components/src/status_im/ui/components/react.cljs @@ -152,10 +152,10 @@ (when (:ref options) ((:ref options) r))) :value text} - (-> options - (dissoc :ref) - (update :style typography/get-style) - (update :style dissoc :line-height)))])}))) + (-> options + (dissoc :ref) + (update :style typography/get-style) + (update :style dissoc :line-height)))])}))) (defn i18n-text [{:keys [style key]}] @@ -196,7 +196,7 @@ (when enabled {:enabled enabled}) (when on-change {:on-value-change on-change}) (when selected {:selected-value selected}))] - (map value->picker-item data))) + (map value->picker-item data))) ;; Image picker @@ -301,39 +301,7 @@ (defmethod create-main-screen-view :iphone-x [current-view] (fn [props & children] - (let [props (merge props - {:background-color - (case current-view - (:wallet-send-transaction - :wallet-request-transaction - :wallet-send-assets - :wallet-request-assets - :choose-recipient - :recent-recipients - :select-account - :wallet-send-transaction-request - :contact-code - :wallet-settings-hook) - colors/blue - - (:qr-viewer - :recipient-qr-code) - "#2f3031" - - colors/white)}) - bottom-background (when (#{:recent-recipients - :select-account - :wallet-send-assets - :wallet-request-assets} current-view) - [view {:background-color colors/white - :position :absolute - :bottom 0 - :right 0 - :left 0 - :height 100 - :z-index -1000}]) - children (conj children bottom-background)] - (apply vector safe-area-view props children)))) + (apply vector safe-area-view props children))) (defmethod create-main-screen-view :default [_] view) diff --git a/fiddle/README.md b/fiddle/README.md index 030ac43e71..c54f4742c6 100644 --- a/fiddle/README.md +++ b/fiddle/README.md @@ -2,4 +2,6 @@ `yarn install` +`clj prepare.clj` + `clj -A:dev` \ No newline at end of file diff --git a/fiddle/prepare.clj b/fiddle/prepare.clj index a5954f9329..bf9f8f1025 100644 --- a/fiddle/prepare.clj +++ b/fiddle/prepare.clj @@ -13,6 +13,6 @@ (fn [fl] (let [n (first (str/split (.getName fl) #".png"))] (when (.isFile fl) - (io/copy (io/file (.getPath fl)) (io/file (str "./resources/public/" n))) - n))) + (io/copy (io/file (.getPath fl)) (io/file (str "./resources/public/" (str/replace n #"_" "-")))) + (str/replace n #"_" "-")))) fls))))) diff --git a/fiddle/resources/public/index.html b/fiddle/resources/public/index.html index ab90d0ec42..599275c359 100644 --- a/fiddle/resources/public/index.html +++ b/fiddle/resources/public/index.html @@ -8,10 +8,7 @@