parent
59e6126572
commit
26a2c5053e
|
@ -36,13 +36,13 @@
|
||||||
name]])
|
name]])
|
||||||
|
|
||||||
(defn drawer-menu [navigator]
|
(defn drawer-menu [navigator]
|
||||||
[view {:style st/drawer-menu}
|
[view st/drawer-menu
|
||||||
[view {:style st/user-photo-container}
|
[view st/user-photo-container
|
||||||
[user-photo {}]]
|
[user-photo {}]]
|
||||||
[view {:style st/name-container}
|
[view st/name-container
|
||||||
[text {:style st/name-text}
|
[text {:style st/name-text}
|
||||||
"Status"]]
|
"Status"]]
|
||||||
[view {:style st/menu-items-container}
|
[view st/menu-items-container
|
||||||
[menu-item {:name "Profile"
|
[menu-item {:name "Profile"
|
||||||
:handler (fn []
|
:handler (fn []
|
||||||
(dispatch [:show-profile navigator]))}]
|
(dispatch [:show-profile navigator]))}]
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
)}]
|
)}]
|
||||||
[menu-item {:name "FAQ"
|
[menu-item {:name "FAQ"
|
||||||
:handler (fn [])}]]
|
:handler (fn [])}]]
|
||||||
[view {:style st/switch-users-container}
|
[view st/switch-users-container
|
||||||
[touchable-opacity {:onPress (fn []
|
[touchable-opacity {:onPress (fn []
|
||||||
(close-drawer)
|
(close-drawer)
|
||||||
;; TODO not implemented
|
;; TODO not implemented
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
[view st/user-online-dot-right]]))
|
[view st/user-online-dot-right]]))
|
||||||
|
|
||||||
(defn profile-property-view [{:keys [name value]}]
|
(defn profile-property-view [{:keys [name value]}]
|
||||||
[view {:style st/profile-property-view-container}
|
[view st/profile-property-view-container
|
||||||
[view {:style st/profile-property-view-sub-container}
|
[view st/profile-property-view-sub-container
|
||||||
[text {:style st/profile-property-view-label}
|
[text {:style st/profile-property-view-label}
|
||||||
name]
|
name]
|
||||||
[text {:style st/profile-property-view-value}
|
[text {:style st/profile-property-view-value}
|
||||||
|
@ -49,36 +49,36 @@
|
||||||
[view st/profile-back-button-container
|
[view st/profile-back-button-container
|
||||||
[image {:source {:uri "icon_back"}
|
[image {:source {:uri "icon_back"}
|
||||||
:style st/profile-back-button-icon}]]]
|
:style st/profile-back-button-icon}]]]
|
||||||
[view {:style st/status-block}
|
[view st/status-block
|
||||||
[view {:style st/user-photo-container}
|
[view st/user-photo-container
|
||||||
[user-photo {}]
|
[user-photo {}]
|
||||||
[user-online {:online true}]]
|
[user-online {:online true}]]
|
||||||
[text {:style st/user-name}
|
[text {:style st/user-name}
|
||||||
(:name @contact)]
|
(:name @contact)]
|
||||||
[text {:style st/status}
|
[text {:style st/status}
|
||||||
"!not implemented"]
|
"!not implemented"]
|
||||||
[view {:style st/btns-container}
|
[view st/btns-container
|
||||||
[touchable-highlight {:onPress #(message-user navigator
|
[touchable-highlight {:onPress #(message-user navigator
|
||||||
(:whisper-identity @contact))
|
(:whisper-identity @contact))
|
||||||
:underlay-color :transparent}
|
:underlay-color :transparent}
|
||||||
[view {:style st/message-btn}
|
[view st/message-btn
|
||||||
[text {:style st/message-btn-text}
|
[text {:style st/message-btn-text}
|
||||||
"Message"]]]
|
"Message"]]]
|
||||||
[touchable-highlight {:onPress (fn []
|
[touchable-highlight {:onPress (fn []
|
||||||
;; TODO not implemented
|
;; TODO not implemented
|
||||||
)
|
)
|
||||||
:underlay-color :transparent}
|
:underlay-color :transparent}
|
||||||
[view {:style st/more-btn}
|
[view st/more-btn
|
||||||
[image {:source {:uri "icon_more_vertical_blue"}
|
[image {:source {:uri "icon_more_vertical_blue"}
|
||||||
:style st/more-btn-image}]]]]]
|
:style st/more-btn-image}]]]]]
|
||||||
[view {:style st/profile-properties-container}
|
[view st/profile-properties-container
|
||||||
[profile-property-view {:name "Username"
|
[profile-property-view {:name "Username"
|
||||||
:value (:name @contact)}]
|
:value (:name @contact)}]
|
||||||
[profile-property-view {:name "Phone number"
|
[profile-property-view {:name "Phone number"
|
||||||
:value (:phone-number @contact)}]
|
:value (:phone-number @contact)}]
|
||||||
[profile-property-view {:name "Email"
|
[profile-property-view {:name "Email"
|
||||||
:value "!not implemented"}]
|
:value "!not implemented"}]
|
||||||
[view {:style st/report-user-container}
|
[view st/report-user-container
|
||||||
[touchable-opacity {}
|
[touchable-opacity {}
|
||||||
[text {:style st/report-user-text}
|
[text {:style st/report-user-text}
|
||||||
"REPORT USER"]]]]])))
|
"REPORT USER"]]]]])))
|
||||||
|
|
Loading…
Reference in New Issue