From 7415ebdc781d4dd55a6c845ec129e322f625f038 Mon Sep 17 00:00:00 2001 From: Lungu Cristian Date: Tue, 5 Mar 2024 15:47:48 +0200 Subject: [PATCH] Updated placeholder for no pinned messages in chat (#18923) * fix: same placeholder for chat & community pins Signed-off-by: Cristian Lungu * fix: text linebreak Signed-off-by: Cristian Lungu --------- Signed-off-by: Cristian Lungu --- .../chat/messenger/menus/pinned_messages/view.cljs | 9 +++------ translations/en.json | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/status_im/contexts/chat/messenger/menus/pinned_messages/view.cljs b/src/status_im/contexts/chat/messenger/menus/pinned_messages/view.cljs index 8f25782b98..abb5fa317a 100644 --- a/src/status_im/contexts/chat/messenger/menus/pinned_messages/view.cljs +++ b/src/status_im/contexts/chat/messenger/menus/pinned_messages/view.cljs @@ -26,15 +26,13 @@ [message/message message context (atom false)]) (defn empty-pinned-messages-state - [{:keys [theme community?]}] + [{:keys [theme]}] [rn/view {:style style/no-pinned-messages-container} [quo/empty-state {:blur? false :image (resources/get-themed-image :no-pinned-messages theme) :title (i18n/label :t/no-pinned-messages) - :description (i18n/label (if community? - :t/no-pinned-messages-community-desc - :t/no-pinned-messages-desc))}]]) + :description (i18n/label :t/no-pinned-messages-desc)}]]) (defn f-pinned-messages [{:keys [theme chat-id]}] @@ -77,8 +75,7 @@ :key-fn list-key-fn :separator [quo/separator {:style {:margin-vertical 8}}]}] [empty-pinned-messages-state - {:community? (boolean community) - :theme theme}])])) + {:theme theme}])])) (defn- internal-pinned-messages [params] diff --git a/translations/en.json b/translations/en.json index c0895469ce..a0bd65906e 100644 --- a/translations/en.json +++ b/translations/en.json @@ -2053,8 +2053,7 @@ "you-must-always-hold": "You must always hold:", "shell-placeholder-title": "Your open tabs will be here", "shell-placeholder-subtitle": "Jump between your communities, messages,\nwallet accounts and browser tabs", - "no-pinned-messages-desc": "This chat doesn’t have any\npinned messages.", - "no-pinned-messages-community-desc": "Just keep pinning, just keep pinning
\nWhat do we do? We pin, pin, pin", + "no-pinned-messages-desc": "Just keep pinning, just keep pinning\nWhat do we do? We pin, pin, pin", "invite-friends-to-status": "Invite friends to Status", "share-invite-link": "Share an invite link", "pending-requests": "Pending requests",