Skip to content

Commit

Permalink
:show-popover -> :open-modal
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthkay committed Apr 4, 2023
1 parent 273c3b0 commit c85f47d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
6 changes: 1 addition & 5 deletions src/status_im/ui/screens/popover/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
[status-im.ui.screens.wallet.request.views :as request]
[status-im.ui.screens.wallet.signing-phrase.views :as signing-phrase]
[status-im.utils.platform :as platform]
[status-im2.contexts.activity-center.view :as activity-center]
[status-im2.contexts.share.view :as share]))
[status-im2.contexts.activity-center.view :as activity-center]))

(defn hide-panel-anim
[bottom-anim-value alpha-value window-height]
Expand Down Expand Up @@ -189,9 +188,6 @@
(= :activity-center view)
[activity-center/view request-close]

(= :profile-share view)
[share/view]

:else
[view])]]]])))})))

Expand Down
2 changes: 1 addition & 1 deletion src/status_im2/common/home/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
[quo/button
(merge button-common-props
{:accessibility-label :show-qr-button
:on-press #(rf/dispatch [:share/open])})
:on-press #(rf/dispatch [:open-modal :share-shell])})
:i/qr-code]
[rn/view
[unread-indicator]
Expand Down
5 changes: 5 additions & 0 deletions src/status_im2/contexts/share/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

(def screen-padding 20)

(def blur
{:style {:position :absolute :top 0 :left 0 :right 0 :bottom 0}
:overlayColor colors/neutral-80-opa-80
:blur-amount 20})

(def header-button
{:margin-bottom 12
:margin-left screen-padding})
Expand Down
6 changes: 4 additions & 2 deletions src/status_im2/contexts/share/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
[status-im2.common.qr-code.qr :as qr]
[clojure.string :as string]
[status-im2.constants :as const]
[react-native.blur :as blur]
;;TODO(siddarthkay) : move the components below over to status-im2 ns
;; issue -> https://github.com/status-im/status-mobile/issues/15549
[status-im.ui.components.list-selection :as list-selection]
Expand All @@ -25,10 +26,10 @@
{:icon true
:type :blur-bg
:size 32
:accessibility-label :close-activity-center
:accessibility-label :close-shell-share-tab
:override-theme :dark
:style style/header-button
:on-press #(rf/dispatch [:hide-popover])}
:on-press #(rf/dispatch [:navigate-back])}
:i/close]
[quo/text
{:size :heading-1
Expand Down Expand Up @@ -125,6 +126,7 @@
(fn [{:keys [top bottom]}]
(let [window-width (rf/sub [:dimensions/window-width])]
[rn/view {:style (style/screen-container window-width top bottom)}
[blur/view style/blur]
[header]
[rn/view {:style style/tabs-container}
[quo/segmented-control
Expand Down
5 changes: 5 additions & 0 deletions src/status_im2/navigation/screens.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
[status-im2.contexts.syncing.view :as settings-syncing]
[status-im2.navigation.options :as options]
[status-im2.contexts.chat.group-details.view :as group-details]
[status-im2.contexts.share.view :as share]

[status-im.ui.screens.screens :as old-screens]
[status-im2.contexts.communities.menus.request-to-join.view :as join-menu]))
Expand All @@ -43,6 +44,10 @@
:options options/transparent-screen-options
:component activity-center/view}

{:name :share-shell
:options options/transparent-screen-options
:component share/view}

{:name :shell-stack
:component shell/shell-stack}

Expand Down

0 comments on commit c85f47d

Please sign in to comment.