diff --git a/common/messages/de.json b/common/messages/de.json index fe130ffa..f167ddba 100644 --- a/common/messages/de.json +++ b/common/messages/de.json @@ -466,6 +466,8 @@ "messages.action.delete": "Löschen", "messages.action.edit": "Bearbeiten", "messages.cannot_message_deleted": "Sie können ihnen keine Nachricht senden, da sie ihr Konto gelöscht haben.", + "messages.cannot_message_banned": "Sie können ihnen keine Nachricht senden, da sie gesperrt wurden.", + "messages.cannot_message_you_banned": "Sie können ihnen keine Nachricht senden, da Sie gesperrt wurden.", "messages.create": "Erstellen", "messages.delete_confirm": "Sind Sie sicher, dass Sie diese Nachricht löschen möchten?", "messages.delete_failed": "Löschen der Nachricht fehlgeschlagen", diff --git a/common/messages/fr.json b/common/messages/fr.json index c923098d..6bb2dc0e 100644 --- a/common/messages/fr.json +++ b/common/messages/fr.json @@ -466,6 +466,8 @@ "messages.action.delete": "Supprimer", "messages.action.edit": "Modifier", "messages.cannot_message_deleted": "Vous ne pouvez pas leur envoyer de message car ils ont supprimé leur compte.", + "messages.cannot_message_banned": "Vous ne pouvez pas leur envoyer de message car ils ont été bannis.", + "messages.cannot_message_you_banned": "Vous ne pouvez pas leur envoyer de message car vous avez été banni.", "messages.create": "Créer", "messages.delete_confirm": "Êtes-vous sûr de vouloir supprimer ce message ?", "messages.delete_failed": "Échec de la suppression du message", diff --git a/web/components/profile-grid.tsx b/web/components/profile-grid.tsx index b0152c16..36d0dd43 100644 --- a/web/components/profile-grid.tsx +++ b/web/components/profile-grid.tsx @@ -111,16 +111,24 @@ export const ProfileGrid = (props: { )} - {!isLoadingMore && !isReloading && other_profiles.length === 0 && ( + {user?.isBannedFromPosting ? (
{t('profile_grid.no_profiles', 'No profiles found.')}
-- {t( - 'profile_grid.notification_cta', - "Feel free to click on Get Notified and we'll notify you when new users match your search!", - )} -
+You can't see profiles as you got banned.
{t('profile_grid.no_profiles', 'No profiles found.')}
++ {t( + 'profile_grid.notification_cta', + "Feel free to click on Get Notified and we'll notify you when new users match your search!", + )} +
+