Skip to content

Commit

Permalink
Updated placeholder for no pinned messages in chat (#18923)
Browse files Browse the repository at this point in the history
* fix: same placeholder for chat & community pins

Signed-off-by: Cristian Lungu <lungucristian95@gmail.com>

* fix: text linebreak

Signed-off-by: Cristian Lungu <lungucristian95@gmail.com>

---------

Signed-off-by: Cristian Lungu <lungucristian95@gmail.com>
  • Loading branch information
clauxx authored Mar 5, 2024
1 parent 58e9ae0 commit 7415ebd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]}]
Expand Down Expand Up @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7415ebd

Please sign in to comment.