diff --git a/web/pages/messages/index.tsx b/web/pages/messages/index.tsx index 3b882279..ef1e893c 100644 --- a/web/pages/messages/index.tsx +++ b/web/pages/messages/index.tsx @@ -13,7 +13,6 @@ import {PageBase} from 'web/components/page-base' import {RelativeTimestamp} from 'web/components/relative-timestamp' import {SEO} from 'web/components/SEO' import {Avatar} from 'web/components/widgets/avatar' -import {Title} from 'web/components/widgets/title' import {BannedBadge} from 'web/components/widgets/user-link' import {useFirebaseUser} from 'web/hooks/use-firebase-user' import {useLastPrivateMessages} from 'web/hooks/use-last-private-messages' @@ -59,14 +58,24 @@ export function MessagesContent(props: {currentUser: User}) { return ( <> - - {t('messages.title', 'Messages')} + +

+ {t('messages.title', 'Messages')} +

- + {channels && channels.length === 0 && ( -
- {t('messages.empty', 'You have no messages, yet.')} +
+

+ {t('messages.empty', 'You have no messages, yet.')} +

+

+ {t( + 'messages.empty_hint', + 'Start a conversation with someone who resonates with you.', + )} +

)} {channels?.map((channel) => { @@ -103,7 +112,11 @@ export const MessageChannelRow = (props: { const isBanned = otherUsers?.length == 1 && otherUsers[0].isBannedFromPosting return ( - + {otherUsers && otherUsers.length > 0 ? ( )} - - + + - + {otherUsers && otherUsers.length > 0 ? ( {otherUsers @@ -142,36 +155,34 @@ export const MessageChannelRow = (props: { ) : ( otherUserIds.length == 0 && ( - {t('messages.deleted_user', 'Deleted user')} + + {t('messages.deleted_user', 'Deleted user')} + ) )} {isBanned && } - + {lastMessage && } {lastMessage && ( <> - {lastMessage.userId == currentUser.id && t('messages.you_prefix', 'You: ')} + {lastMessage.userId == currentUser.id && ( + {t('messages.you_prefix', 'You: ')} + )} {parseJsonContentToText(lastMessage.content)} )} - {unseen && ( -
- )} + {unseen &&
}