More reagent atom regression #19812 (#19828)

This commit is contained in:
flexsurfer 2024-05-01 12:19:50 +02:00 committed by GitHub
parent 6a1fdc5b08
commit 6037fe80c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 24 additions and 22 deletions

View File

@ -77,7 +77,7 @@
:background-color button-color} :background-color button-color}
style)} style)}
(when (#{:mention :search :search-with-label :scroll-to-bottom} type) (when (#{:mention :search :search-with-label :scroll-to-bottom} type)
[icon-view type]) [icon-view type theme])
(when (#{:jump-to :mention :notification-down :notification-up :search-with-label} type) (when (#{:jump-to :mention :notification-down :notification-up :search-with-label} type)
[text/text [text/text
{:weight :medium {:weight :medium

View File

@ -29,22 +29,23 @@
:resize-mode :cover}])) :resize-mode :cover}]))
(defn- content (defn- content
[{:keys [title body]} theme] [{:keys [title body]}]
[rn/view {:style style/content-container} (let [theme (quo.theme/use-theme)]
[text/text [rn/view {:style style/content-container}
{:accessibility-label :title [text/text
:size :paragraph-2 {:accessibility-label :title
:weight :semi-bold :size :paragraph-2
:number-of-lines 1 :weight :semi-bold
:style (style/title theme)} :number-of-lines 1
title] :style (style/title theme)}
[text/text title]
{:accessibility-label :body [text/text
:size :paragraph-2 {:accessibility-label :body
:weight :medium :size :paragraph-2
:number-of-lines 1 :weight :medium
:style (style/body theme)} :number-of-lines 1
body]]) :style (style/body theme)}
body]]))
(defn- clear-button (defn- clear-button
[{:keys [on-press]}] [{:keys [on-press]}]

View File

@ -57,9 +57,9 @@
[rn/view {:style (style/author color)}]]])]) [rn/view {:style (style/author color)}]]])])
(defn- f-animated-skeleton-view (defn- f-animated-skeleton-view
[{:keys [style color skeleton-height animated? translate-x window-width theme] :as data}] [{:keys [style color skeleton-height animated? translate-x window-width] :as data}]
(let [loading-color (colors/theme-colors colors/neutral-10 colors/neutral-60 theme)] (let [theme (quo.theme/use-theme)
loading-color (colors/theme-colors colors/neutral-10 colors/neutral-60 theme)]
(rn/use-effect (rn/use-effect
(fn [] (fn []
(when-not animated? (when-not animated?

View File

@ -220,8 +220,9 @@
[actions chat-id customization-color]])) [actions chat-id customization-color]]))
(defn footer-component (defn footer-component
[{:keys [chat distance-from-list-top theme customization-color]}] [{:keys [chat distance-from-list-top customization-color]}]
(let [{:keys [chat-id chat-name emoji chat-type (let [theme (quo.theme/use-theme)
{:keys [chat-id chat-name emoji chat-type
group-chat color description group-chat color description
last-message]} chat last-message]} chat
display-name (cond display-name (cond