Skip to content

Commit

Permalink
[#19048] fix: resolve schema issue in qr-code comp
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghafouri committed Mar 8, 2024
1 parent 64ca4a3 commit 637717b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/quo/components/share/share_qr_code/schema.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
(def ?profile
[:map
[:type [:= :profile]]
[:profile-picture :schema.common/image-source]])
[:profile-picture [:maybe :schema.quo/profile-picture-source]]])

(def ?wallet
[:map
Expand Down
5 changes: 3 additions & 2 deletions src/status_im/contexts/profile/contact/share/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
[utils.i18n :as i18n]
[utils.re-frame :as rf]))

(defn navigation-back [] (rf/dispatch [:navigate-back]))

(defn view
[]
(let [{:keys [universal-profile-url customization-color]
:as profile} (rf/sub [:contacts/current-contact])
abbreviated-url (rn/use-memo (fn []
(address/get-abbreviated-profile-url universal-profile-url))
[universal-profile-url])
on-back-press #(rf/dispatch [:navigate-back])
on-share-press (rn/use-callback #(list-selection/open-share {:message universal-profile-url})
[universal-profile-url])
on-copy-press (rn/use-callback (fn []
Expand All @@ -33,7 +34,7 @@
:key :share-community}
[quo/page-nav
{:icon-name :i/close
:on-press on-back-press
:on-press navigation-back
:background :blur
:accessibility-label :top-bar}]
[quo/page-top
Expand Down

0 comments on commit 637717b

Please sign in to comment.