Remove extra :style

This commit is contained in:
virvar 2016-05-09 15:41:51 +03:00
parent 6eeaab5c28
commit 509748888f
2 changed files with 14 additions and 14 deletions

View File

@ -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

View File

@ -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"]]]]])))