Skip to content

Commit

Permalink
Communication: Fix info sheet formatting issues (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
anian03 authored Oct 19, 2024
1 parent 52287dc commit 2371191
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@
"editDescriptionLabel" = "Edit Description";
"newDescriptionLabel" = "New Description";
"moreInfoLabel" = "More info";
"createdByLabel" = "Created by: %s";
"createdOnLabel" = "Created on: %s";
"createdByLabel" = "Created by";
"createdOnLabel" = "Created on";
"addFavorite" = "Add to Favorites";
"removeFavorite" = "Remove from Favorites";
"sendMessage" = "Send Message";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,12 @@ private struct InfoSection: View {
if conversation.baseConversation.creator?.name != nil || conversation.baseConversation.creationDate != nil {
Section(R.string.localizable.moreInfoLabel()) {
if let creator = conversation.baseConversation.creator?.name {
Text(R.string.localizable.createdByLabel(creator))
Text(R.string.localizable.createdByLabel())
.badge(creator)
}
if let creationDate = conversation.baseConversation.creationDate {
Text(R.string.localizable.createdOnLabel(creationDate.mediumDateShortTime))
Text(R.string.localizable.createdOnLabel())
.badge(creationDate.mediumDateShortTime)
}
}
}
Expand Down

0 comments on commit 2371191

Please sign in to comment.