Skip to content

Commit ad1d740

Browse files
[#17986] fix: address feedbacks and removed link to new profile to fix e2e issue
1 parent f18dd76 commit ad1d740

File tree

4 files changed

+86
-67
lines changed

4 files changed

+86
-67
lines changed

src/status_im2/common/home/top_nav/view.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
:unread-indicator/new :mention
3434
nil)]
3535
[quo/top-nav
36-
{:avatar-on-press #(rf/dispatch [:open-modal :settings])
36+
{:avatar-on-press #(rf/dispatch [:navigate-to :my-profile])
3737
:scan-on-press #(js/alert "to be implemented")
3838
:activity-center-on-press #(rf/dispatch [:activity-center/open])
3939
:qr-code-on-press #(dispatch-and-chill [:open-modal :share-shell] 1000)

src/status_im2/contexts/profile/settings/constants.cljs

Lines changed: 0 additions & 64 deletions
This file was deleted.
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
(ns status-im2.contexts.profile.settings.list-items
2+
(:require [status-im2.common.not-implemented :as not-implemented]
3+
[utils.i18n :as i18n]
4+
[utils.re-frame :as rf]))
5+
6+
(def items
7+
[[{:title (i18n/label :t/edit-profile)
8+
:on-press not-implemented/alert
9+
:image-props :i/edit
10+
:image :icon
11+
:action :arrow}
12+
{:title (i18n/label :t/password)
13+
:on-press not-implemented/alert
14+
:image-props :i/password
15+
:image :icon
16+
:action :arrow}]
17+
[{:title (i18n/label :t/messages)
18+
:on-press not-implemented/alert
19+
:image-props :i/messages
20+
:image :icon
21+
:action :arrow}
22+
{:title (i18n/label :t/wallet)
23+
:on-press not-implemented/alert
24+
:image-props :i/wallet
25+
:image :icon
26+
:action :arrow}
27+
{:title (i18n/label :t/dapps)
28+
:on-press not-implemented/alert
29+
:image-props :i/placeholder
30+
:image :icon
31+
:action :arrow}
32+
{:title (i18n/label :t/browser)
33+
:on-press not-implemented/alert
34+
:image-props :i/browser
35+
:image :icon
36+
:action :arrow}
37+
{:title (i18n/label :t/keycard)
38+
:on-press not-implemented/alert
39+
:image-props :i/keycard
40+
:image :icon
41+
:action :arrow}]
42+
[{:title (i18n/label :t/syncing)
43+
:on-press not-implemented/alert
44+
:image-props :i/syncing
45+
:image :icon
46+
:action :arrow}
47+
{:title (i18n/label :t/notifications)
48+
:on-press not-implemented/alert
49+
:image-props :i/notifications
50+
:image :icon
51+
:action :arrow}
52+
{:title (i18n/label :t/appearance)
53+
:on-press not-implemented/alert
54+
:image-props :i/light
55+
:image :icon
56+
:action :arrow}
57+
{:title (i18n/label :t/language-and-currency)
58+
:on-press not-implemented/alert
59+
:image-props :i/globe
60+
:image :icon
61+
:action :arrow}]
62+
[{:title (i18n/label :t/data-usage)
63+
:on-press not-implemented/alert
64+
:image-props :i/mobile
65+
:image :icon
66+
:action :arrow}
67+
{:title (i18n/label :t/advanced)
68+
:on-press not-implemented/alert
69+
:image-props :i/settings
70+
:image :icon
71+
:action :arrow}]
72+
;; temporary link to legacy settings
73+
[{:title "Legacy settings"
74+
:on-press #(rf/dispatch [:navigate-to :my-profile])
75+
:action :arrow
76+
:image :icon
77+
:image-props :i/toggle}]
78+
[{:title (i18n/label :t/about)
79+
:on-press not-implemented/alert
80+
:action :arrow}
81+
{:title (i18n/label :t/status-help)
82+
:on-press not-implemented/alert
83+
:action :arrow}]])

src/status_im2/contexts/profile/settings/view.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
[react-native.reanimated :as reanimated]
77
[react-native.safe-area :as safe-area]
88
[status-im2.common.not-implemented :as not-implemented]
9-
[status-im2.contexts.profile.settings.constants :as settings.constants]
109
[status-im2.contexts.profile.settings.header.view :as settings.header]
10+
[status-im2.contexts.profile.settings.list-items :as settings.items]
1111
[status-im2.contexts.profile.settings.style :as style]
1212
[utils.debounce :as debounce]
1313
[utils.i18n :as i18n]
@@ -56,7 +56,7 @@
5656
:on-press #(debounce/dispatch-and-chill [:open-modal :share-shell] 1000)}]}]]
5757
[rn/flat-list
5858
{:header [settings.header/view {:scroll-y scroll-y}]
59-
:data settings.constants/settings-items
59+
:data settings.items/items
6060
:key-fn :title
6161
:shows-vertical-scroll-indicator false
6262
:render-fn f-settings-item-view

0 commit comments

Comments
 (0)