Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More reagent atom regression #19812 #19828

Merged
merged 1 commit into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/quo/components/buttons/dynamic_button/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
:background-color button-color}
style)}
(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)
[text/text
{:weight :medium
Expand Down
33 changes: 17 additions & 16 deletions src/quo/components/links/url_preview/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,23 @@
:resize-mode :cover}]))

(defn- content
[{:keys [title body]} theme]
[rn/view {:style style/content-container}
[text/text
{:accessibility-label :title
:size :paragraph-2
:weight :semi-bold
:number-of-lines 1
:style (style/title theme)}
title]
[text/text
{:accessibility-label :body
:size :paragraph-2
:weight :medium
:number-of-lines 1
:style (style/body theme)}
body]])
[{:keys [title body]}]
(let [theme (quo.theme/use-theme)]
[rn/view {:style style/content-container}
[text/text
{:accessibility-label :title
:size :paragraph-2
:weight :semi-bold
:number-of-lines 1
:style (style/title theme)}
title]
[text/text
{:accessibility-label :body
:size :paragraph-2
:weight :medium
:number-of-lines 1
:style (style/body theme)}
body]]))

(defn- clear-button
[{:keys [on-press]}]
Expand Down
6 changes: 3 additions & 3 deletions src/quo/components/loaders/skeleton_list/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
[rn/view {:style (style/author color)}]]])])

(defn- f-animated-skeleton-view
[{:keys [style color skeleton-height animated? translate-x window-width theme] :as data}]
(let [loading-color (colors/theme-colors colors/neutral-10 colors/neutral-60 theme)]

[{:keys [style color skeleton-height animated? translate-x window-width] :as data}]
(let [theme (quo.theme/use-theme)
loading-color (colors/theme-colors colors/neutral-10 colors/neutral-60 theme)]
(rn/use-effect
(fn []
(when-not animated?
Expand Down
5 changes: 3 additions & 2 deletions src/status_im/contexts/chat/messenger/messages/list/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,9 @@
[actions chat-id customization-color]]))

(defn footer-component
[{:keys [chat distance-from-list-top theme customization-color]}]
(let [{:keys [chat-id chat-name emoji chat-type
[{:keys [chat distance-from-list-top customization-color]}]
(let [theme (quo.theme/use-theme)
{:keys [chat-id chat-name emoji chat-type
group-chat color description
last-message]} chat
display-name (cond
Expand Down