File tree Expand file tree Collapse file tree 5 files changed +381
-381
lines changed Expand file tree Collapse file tree 5 files changed +381
-381
lines changed Original file line number Diff line number Diff line change 8
8
[utils.security.core :as security]))
9
9
10
10
(rf/defn create-profile-and-login
11
- {:events [:profile.create/create-and-login ]}
12
- [_ {:keys [display-name password image-path color]}]
13
- {:effects.profile/create-and-login
14
- (assoc (profile.config/create )
15
- :displayName display-name
16
- :password (native-module/sha3 (security/safe-unmask-data password))
17
- :imagePath (profile.config/strip-file-prefix image-path)
18
- :customizationColor color
19
- :emoji (emoji-picker.utils/random-emoji ))})
11
+ {:events [:profile.create/create-and-login ]}
12
+ [_ {:keys [display-name password image-path color]}]
13
+ {:effects.profile/create-and-login
14
+ (assoc (profile.config/create )
15
+ :displayName display-name
16
+ :password (native-module/sha3 (security/safe-unmask-data password))
17
+ :imagePath (profile.config/strip-file-prefix image-path)
18
+ :customizationColor color
19
+ :emoji (emoji-picker.utils/random-emoji ))})
Original file line number Diff line number Diff line change 8
8
[utils.security.core :as security]))
9
9
10
10
(rf/defn recover-profile-and-login
11
- {:events [:profile.recover/recover-and-login ]}
12
- [{:keys [db]} {:keys [display-name password image-path color seed-phrase]}]
13
- {:db
14
- (assoc db :onboarding/recovered-account? true )
11
+ {:events [:profile.recover/recover-and-login ]}
12
+ [{:keys [db]} {:keys [display-name password image-path color seed-phrase]}]
13
+ {:db
14
+ (assoc db :onboarding/recovered-account? true )
15
15
16
- :effects.profile/restore-and-login
17
- (merge (profile.config/create )
18
- {:displayName display-name
19
- :mnemonic (security/safe-unmask-data seed-phrase)
20
- :password (native-module/sha3 (security/safe-unmask-data password))
21
- :imagePath (profile.config/strip-file-prefix image-path)
22
- :customizationColor color
23
- :emoji (emoji-picker.utils/random-emoji )})})
16
+ :effects.profile/restore-and-login
17
+ (merge (profile.config/create )
18
+ {:displayName display-name
19
+ :mnemonic (security/safe-unmask-data seed-phrase)
20
+ :password (native-module/sha3 (security/safe-unmask-data password))
21
+ :imagePath (profile.config/strip-file-prefix image-path)
22
+ :customizationColor color
23
+ :emoji (emoji-picker.utils/random-emoji )})})
Original file line number Diff line number Diff line change 28
28
(cond-> [{:id :assets :label (i18n/label :t/assets ) :accessibility-label :assets-tab }
29
29
{:id :collectibles :label (i18n/label :t/collectibles ) :accessibility-label :collectibles-tab }
30
30
{:id :activity :label (i18n/label :t/activity ) :accessibility-label :activity-tab }]
31
- (not watch-only?) (conj {:id :dapps :label (i18n/label :t/dapps ) :accessibility-label :dapps })
32
- true (conj {:id :about :label (i18n/label :t/about ) :accessibility-label :about })))
31
+ (not watch-only?) (conj {:id :dapps :label (i18n/label :t/dapps ) :accessibility-label :dapps })
32
+ true (conj {:id :about :label (i18n/label :t/about ) :accessibility-label :about })))
33
33
34
34
(defn view
35
35
[]
You can’t perform that action at this time.
0 commit comments