From d4f666eff0a38e53f34b769db39d9fdbcd3a38d5 Mon Sep 17 00:00:00 2001 From: virvar Date: Wed, 11 May 2016 10:42:04 +0300 Subject: [PATCH] Microrefactoring Former-commit-id: 3264bbfac96ec9d398bbf31cc4d53066b0e5d627 --- src/syng_im/components/chat/input/phone.cljs | 3 +-- src/syng_im/components/profile.cljs | 11 ++++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/syng_im/components/chat/input/phone.cljs b/src/syng_im/components/chat/input/phone.cljs index 92f78ba88c..2ff0812b4a 100644 --- a/src/syng_im/components/chat/input/phone.cljs +++ b/src/syng_im/components/chat/input/phone.cljs @@ -6,5 +6,4 @@ (defn phone-input-view [command] [simple-command-input-view command {:keyboardType :phone-pad} - :validator (fn [message] - (valid-mobile-number? message))]) + :validator valid-mobile-number?]) diff --git a/src/syng_im/components/profile.cljs b/src/syng_im/components/profile.cljs index e5dcfa2b61..7ce6bea22d 100644 --- a/src/syng_im/components/profile.cljs +++ b/src/syng_im/components/profile.cljs @@ -41,9 +41,8 @@ (let [contact (subscribe [:contact])] (fn [] [scroll-view {:style st/profile} - [touchable-highlight {:style st/profile-back-button-touchable - :on-press #(dispatch [:navigate-back]) - :underlay-color :transparent} + [touchable-highlight {:style st/profile-back-button-touchable + :on-press #(dispatch [:navigate-back])} [view st/profile-back-button-container [icon :back st/profile-back-button-icon]]] [view st/status-block @@ -55,15 +54,13 @@ [text {:style st/status} "!not implemented"] [view st/btns-container - [touchable-highlight {:onPress #(message-user (:whisper-identity @contact)) - :underlay-color :transparent} + [touchable-highlight {:onPress #(message-user (:whisper-identity @contact))} [view st/message-btn [text {:style st/message-btn-text} "Message"]]] [touchable-highlight {:onPress (fn [] ;; TODO not implemented - ) - :underlay-color :transparent} + )} [view st/more-btn [icon :more_vertical_blue st/more-btn-image]]]]] [view st/profile-properties-container