From 509748888f51d2d3ba5db795f2e4b240690db3fb Mon Sep 17 00:00:00 2001 From: virvar Date: Mon, 9 May 2016 15:41:51 +0300 Subject: [PATCH] Remove extra :style --- src/syng_im/components/drawer.cljs | 10 +++++----- src/syng_im/components/profile.cljs | 18 +++++++++--------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/syng_im/components/drawer.cljs b/src/syng_im/components/drawer.cljs index 19fc3b2ea7..e930d59f15 100644 --- a/src/syng_im/components/drawer.cljs +++ b/src/syng_im/components/drawer.cljs @@ -36,13 +36,13 @@ name]]) (defn drawer-menu [navigator] - [view {:style st/drawer-menu} - [view {:style st/user-photo-container} + [view st/drawer-menu + [view st/user-photo-container [user-photo {}]] - [view {:style st/name-container} + [view st/name-container [text {:style st/name-text} "Status"]] - [view {:style st/menu-items-container} + [view st/menu-items-container [menu-item {:name "Profile" :handler (fn [] (dispatch [:show-profile navigator]))}] @@ -59,7 +59,7 @@ )}] [menu-item {:name "FAQ" :handler (fn [])}]] - [view {:style st/switch-users-container} + [view st/switch-users-container [touchable-opacity {:onPress (fn [] (close-drawer) ;; TODO not implemented diff --git a/src/syng_im/components/profile.cljs b/src/syng_im/components/profile.cljs index de3661937d..d6fd8505e9 100644 --- a/src/syng_im/components/profile.cljs +++ b/src/syng_im/components/profile.cljs @@ -27,8 +27,8 @@ [view st/user-online-dot-right]])) (defn profile-property-view [{:keys [name value]}] - [view {:style st/profile-property-view-container} - [view {:style st/profile-property-view-sub-container} + [view st/profile-property-view-container + [view st/profile-property-view-sub-container [text {:style st/profile-property-view-label} name] [text {:style st/profile-property-view-value} @@ -49,36 +49,36 @@ [view st/profile-back-button-container [image {:source {:uri "icon_back"} :style st/profile-back-button-icon}]]] - [view {:style st/status-block} - [view {:style st/user-photo-container} + [view st/status-block + [view st/user-photo-container [user-photo {}] [user-online {:online true}]] [text {:style st/user-name} (:name @contact)] [text {:style st/status} "!not implemented"] - [view {:style st/btns-container} + [view st/btns-container [touchable-highlight {:onPress #(message-user navigator (:whisper-identity @contact)) :underlay-color :transparent} - [view {:style st/message-btn} + [view st/message-btn [text {:style st/message-btn-text} "Message"]]] [touchable-highlight {:onPress (fn [] ;; TODO not implemented ) :underlay-color :transparent} - [view {:style st/more-btn} + [view st/more-btn [image {:source {:uri "icon_more_vertical_blue"} :style st/more-btn-image}]]]]] - [view {:style st/profile-properties-container} + [view st/profile-properties-container [profile-property-view {:name "Username" :value (:name @contact)}] [profile-property-view {:name "Phone number" :value (:phone-number @contact)}] [profile-property-view {:name "Email" :value "!not implemented"}] - [view {:style st/report-user-container} + [view st/report-user-container [touchable-opacity {} [text {:style st/report-user-text} "REPORT USER"]]]]])))