Fix adv settings clicks, some styling changes
This commit is contained in:
parent
1dd9591b5e
commit
7c2c537a1a
|
@ -16,14 +16,19 @@
|
||||||
:height 56
|
:height 56
|
||||||
:align-self :stretch
|
:align-self :stretch
|
||||||
:align-items :center
|
:align-items :center
|
||||||
:background-color (if active? colors/gray-lighter colors/white)
|
:background-color (if active? colors/gray-lighter colors/white)})
|
||||||
:margin-top 20})
|
|
||||||
|
|
||||||
(defn profile-row-text [color active?]
|
(defn profile-row-text [color active?]
|
||||||
{:color color
|
{:color color
|
||||||
:font-weight (if active? "600" :normal)
|
:font-weight (if active? "600" :normal)
|
||||||
:font-size 16})
|
:font-size 16})
|
||||||
|
|
||||||
|
(def adv-settings
|
||||||
|
{:justify-content :space-between
|
||||||
|
:flex-direction :row
|
||||||
|
:align-items :center
|
||||||
|
:flex 1})
|
||||||
|
|
||||||
(def profile-photo
|
(def profile-photo
|
||||||
{:border-radius 100
|
{:border-radius 100
|
||||||
:width 100
|
:width 100
|
||||||
|
@ -40,7 +45,7 @@
|
||||||
:height 45
|
:height 45
|
||||||
:width 240
|
:width 240
|
||||||
:margin-horizontal 50
|
:margin-horizontal 50
|
||||||
:margin-bottom 20
|
:margin-bottom 48
|
||||||
:border-radius 8
|
:border-radius 8
|
||||||
:background-color (colors/alpha colors/blue 0.1)})
|
:background-color (colors/alpha colors/blue 0.1)})
|
||||||
|
|
||||||
|
|
|
@ -86,10 +86,10 @@
|
||||||
[react/view styles/profile-view
|
[react/view styles/profile-view
|
||||||
[profile-badge user]
|
[profile-badge user]
|
||||||
[share-contact-code]
|
[share-contact-code]
|
||||||
[react/view {:style (styles/profile-row adv-settings-open?)}
|
[react/touchable-highlight {:style (styles/profile-row adv-settings-open?)
|
||||||
[react/touchable-highlight {:on-press #(re-frame/dispatch [:navigate-to (if adv-settings-open? :home :advanced-settings)])}
|
:on-press #(re-frame/dispatch [:navigate-to (if adv-settings-open? :home :advanced-settings)])}
|
||||||
[react/text {:style (styles/profile-row-text colors/black adv-settings-open?)} (i18n/label :t/advanced-settings)]]
|
[react/view {:style styles/adv-settings}
|
||||||
[react/touchable-highlight {:on-press #(re-frame/dispatch [:navigate-to (if adv-settings-open? :intro :home)])}
|
[react/text {:style (styles/profile-row-text colors/black adv-settings-open?)} (i18n/label :t/advanced-settings)]
|
||||||
[vector-icons/icon :icons/forward {:style {:tint-color colors/gray}}]]]
|
[vector-icons/icon :icons/forward {:style {:tint-color colors/gray}}]]]
|
||||||
[react/view {:style (styles/profile-row false)}
|
[react/view {:style (styles/profile-row false)}
|
||||||
[react/touchable-highlight {:on-press #(re-frame/dispatch [:logout])}
|
[react/touchable-highlight {:on-press #(re-frame/dispatch [:logout])}
|
||||||
|
|
Loading…
Reference in New Issue