feat(desktop): empty-state for empty conversation
This commit is contained in:
@@ -6,6 +6,7 @@ import { useParams } from 'react-router-dom';
|
|||||||
|
|
||||||
import { ConversationHeader } from '../components/ConversationHeader';
|
import { ConversationHeader } from '../components/ConversationHeader';
|
||||||
import { EmojiPicker } from '../components/EmojiPicker';
|
import { EmojiPicker } from '../components/EmojiPicker';
|
||||||
|
import { EmptyState } from '../components/EmptyState';
|
||||||
import { ForwardDialog } from '../components/ForwardDialog';
|
import { ForwardDialog } from '../components/ForwardDialog';
|
||||||
import { GroupInfoPanel } from '../components/GroupInfoPanel';
|
import { GroupInfoPanel } from '../components/GroupInfoPanel';
|
||||||
import {
|
import {
|
||||||
@@ -17,6 +18,7 @@ import {
|
|||||||
PollIcon,
|
PollIcon,
|
||||||
ReplyIcon,
|
ReplyIcon,
|
||||||
SearchIcon,
|
SearchIcon,
|
||||||
|
SendIcon,
|
||||||
SmileIcon,
|
SmileIcon,
|
||||||
SpinnerIcon,
|
SpinnerIcon,
|
||||||
XIcon,
|
XIcon,
|
||||||
@@ -670,7 +672,13 @@ export function ConversationPage() {
|
|||||||
) : error ? (
|
) : error ? (
|
||||||
<Banner>{error}</Banner>
|
<Banner>{error}</Banner>
|
||||||
) : messages.length === 0 ? (
|
) : messages.length === 0 ? (
|
||||||
<p className="text-center text-sm text-fg-muted">…</p>
|
<EmptyState
|
||||||
|
icon={<SendIcon className="h-8 w-8" />}
|
||||||
|
title={t('app:chats.conv_empty_title', { defaultValue: 'Sag Hallo 👋' })}
|
||||||
|
description={t('app:chats.conv_empty_desc', {
|
||||||
|
defaultValue: 'Hier ist noch nichts. Schreibe die erste Nachricht.',
|
||||||
|
})}
|
||||||
|
/>
|
||||||
) : (
|
) : (
|
||||||
<ul className="space-y-0.5">
|
<ul className="space-y-0.5">
|
||||||
{displayCount < messages.length && (
|
{displayCount < messages.length && (
|
||||||
|
|||||||
Reference in New Issue
Block a user