File tree 5 files changed +6
-15
lines changed
src/status_im/contexts/profile/contact
5 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 14
14
[]
15
15
(let [{:keys [public-key primary-name nickname customization-color]
16
16
:as profile} (rf/sub [:contacts/current-contact ])
17
- ; ; TODO(@mohsen): remove default color,
18
- ; ; https://github.com/status-im/status-mobile/issues/18733
19
- customization-color (or customization-color constants/profile-default-color)
17
+ customization-color customization-color
20
18
full-name (profile.utils/displayed-name profile)
21
19
profile-picture (profile.utils/photo profile)
22
20
[unsaved-nickname set-unsaved-nickname] (rn/use-state nickname)
Original file line number Diff line number Diff line change 13
13
[]
14
14
(let [{:keys [customization-color contact-request-state public-key]
15
15
:as contact} (rf/sub [:contacts/current-contact ])
16
- ; ; TODO(@mohsen): remove default color,
17
- ; ; https://github.com/status-im/status-mobile/issues/18733
18
- customization-color (or customization-color constants/profile-default-color)
16
+ customization-color customization-color
19
17
full-name (profile.utils/displayed-name contact)
20
18
profile-picture (profile.utils/photo contact)
21
19
on-block-press (rn/use-callback
Original file line number Diff line number Diff line change 12
12
[]
13
13
(let [{:keys [public-key customization-color]
14
14
:as profile} (rf/sub [:contacts/current-contact ])
15
- ; ; TODO: remove default color when #18733 merged.
16
- customization-color (or customization-color constants/profile-default-color)
15
+ customization-color customization-color
17
16
full-name (profile.utils/displayed-name profile)
18
17
profile-picture (profile.utils/photo profile)
19
18
[message set-message] (rn/use-state " " )
Original file line number Diff line number Diff line change 29
29
(let [{:keys [public-key customization-color ens-name nickname secondary-name
30
30
emoji-hash bio blocked? contact-request-state]
31
31
:as contact} (rf/sub [:contacts/current-contact ])
32
- ; ; TODO(@mohsen): remove default color,
33
- ; ; https://github.com/status-im/status-mobile/issues/18733
34
32
customization-color (or customization-color constants/profile-default-color)
35
33
full-name (profile.utils/displayed-name contact)
36
34
profile-picture (profile.utils/photo contact)
Original file line number Diff line number Diff line change 4
4
[quo.theme]
5
5
[react-native.reanimated :as reanimated]
6
6
[status-im.common.scroll-page.view :as scroll-page]
7
- [status-im.constants :as constants]
8
7
[status-im.contexts.profile.contact.actions.view :as actions]
9
8
[status-im.contexts.profile.contact.header.view :as contact-header]
10
9
[status-im.contexts.shell.jump-to.constants :as jump-to.constants]
25
24
(defn view
26
25
[]
27
26
(let [{:keys [customization-color]} (rf/sub [:contacts/current-contact ])
27
+ profile-customization-color (rf/sub [:profile/customization-color ])
28
28
scroll-y (reanimated/use-shared-value 0 )
29
29
theme (quo.theme/use-theme-value )]
30
30
[:<>
31
31
[scroll-page/scroll-page
32
32
{:navigate-back? true
33
33
:height 148
34
34
:on-scroll #(reanimated/set-shared-value scroll-y %)
35
- ; ; TODO(@mohsen): remove default color,
36
- ; ; https://github.com/status-im/status-mobile/issues/18733
37
- :cover-color (colors/resolve-color (or customization-color constants/profile-default-color)
35
+ :cover-color (colors/resolve-color customization-color
38
36
theme
39
37
20 )
40
38
:background-color (colors/theme-colors colors/white colors/neutral-95 theme)
45
43
[quo/floating-shell-button
46
44
{:jump-to
47
45
{:on-press on-jump-to
48
- :customization-color customization-color
46
+ :customization-color profile- customization-color
49
47
:label (i18n/label :t/jump-to )}}
50
48
{:position :absolute
51
49
:bottom jump-to.constants/floating-shell-button-height}]]))
You can’t perform that action at this time.
0 commit comments