Skip to content

Commit

Permalink
Community collapsed header title animation fix (#19395)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayesivan authored Apr 7, 2024
1 parent 60a4aa2 commit 32098d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/quo/components/navigation/page_nav/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
(and (= theme :dark) (= background :blur)) :grey
:else :ghost)
dropdown-state (if dropdown-selected? :active :default)]
[rn/view {:style (style/center-content-container true center-opacity)}
[reanimated/view {:style (style/center-content-container true center-opacity)}
[dropdown/view
{:type dropdown-type
:state dropdown-state
Expand All @@ -124,7 +124,7 @@

(defn- token-center
[{:keys [theme background token-logo token-name token-abbreviation center-opacity]}]
[rn/view {:style (style/center-content-container false center-opacity)}
[reanimated/view {:style (style/center-content-container false center-opacity)}
[rn/image {:style style/token-logo :source token-logo}]
[text/text
{:style style/token-name
Expand All @@ -141,7 +141,7 @@

(defn- channel-center
[{:keys [theme background channel-emoji channel-name channel-icon center-opacity]}]
[rn/view {:style (style/center-content-container false center-opacity)}
[reanimated/view {:style (style/center-content-container false center-opacity)}
[rn/text {:style style/channel-emoji}
channel-emoji]
[text/text
Expand All @@ -154,7 +154,7 @@

(defn- title-description-center
[{:keys [background theme picture title description center-opacity]}]
[rn/view {:style (style/center-content-container false center-opacity)}
[reanimated/view {:style (style/center-content-container false center-opacity)}
(when picture
[rn/view {:style style/group-avatar-picture}
[group-avatar/view {:picture picture :size :size-28}]])
Expand All @@ -177,7 +177,7 @@
(let [community? (= type :community)
shown-logo (if community? community-logo network-logo)
shown-name (if community? community-name network-name)]
[rn/view {:style (style/center-content-container false center-opacity)}
[reanimated/view {:style (style/center-content-container false center-opacity)}
[rn/image
{:style style/community-network-logo
:source shown-logo}]
Expand All @@ -189,7 +189,7 @@

(defn- wallet-networks-center
[{:keys [networks networks-on-press background center-opacity]}]
[rn/view {:style (style/center-content-container true center-opacity)}
[reanimated/view {:style (style/center-content-container true center-opacity)}
[network-dropdown/view
{:state :default
:on-press networks-on-press
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/common/scroll_page/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
:blur
:photo)
:right-side page-nav-right-section-buttons
:center-opacity (reanimated/get-shared-value opacity-animation)
:center-opacity opacity-animation
:overlay-shown? overlay-shown?}
navigate-back? (assoc :icon-name :i/close
:accessibility-label :back-button
Expand Down

0 comments on commit 32098d2

Please sign in to comment.