base commit

This commit is contained in:
@kirill.komarov
2026-05-04 12:34:01 +05:00
parent 6885e39017
commit ebe1ede25c
100 changed files with 7688 additions and 9 deletions
@@ -257,7 +257,7 @@ export function AdminOrdersPage() {
{m.authorType === 'admin' ? 'Админ (вы)' : 'Пользователь'} ·{' '}
{new Date(m.createdAt).toLocaleString()}
</Typography>
<RichTextMessageContent value={m.text} />
<RichTextMessageContent value={m.text} tone="chat" />
</Box>
))}
{detail.messages.length === 0 && <Typography color="text.secondary">Нет сообщений.</Typography>}
@@ -69,7 +69,7 @@ export function AdminReviewsPage() {
<TableCell>
<Chip label={String(r.rating)} size="small" />
</TableCell>
<TableCell>{r.text?.trim() ? <RichTextMessageContent value={r.text} /> : '—'}</TableCell>
<TableCell>{r.text?.trim() ? <RichTextMessageContent value={r.text} tone="review" /> : '—'}</TableCell>
<TableCell align="right">
<Button
size="small"
@@ -176,7 +176,7 @@ export function MessagesPage() {
<Typography variant="caption" color="text.secondary">
{m.authorType === 'admin' ? 'Админ' : 'Вы'} · {new Date(m.createdAt).toLocaleString()}
</Typography>
<RichTextMessageContent value={m.text} />
<RichTextMessageContent value={m.text} tone="chat" />
</Box>
))}
{order.messages.length === 0 && <Typography color="text.secondary">Нет сообщений.</Typography>}
@@ -332,7 +332,7 @@ export function OrderDetailPage() {
<Typography variant="caption" color="text.secondary">
{m.authorType === 'admin' ? 'Админ' : 'Вы'} · {new Date(m.createdAt).toLocaleString()}
</Typography>
<RichTextMessageContent value={m.text} />
<RichTextMessageContent value={m.text} tone="chat" />
</Box>
))}
{order.messages.length === 0 && <Typography color="text.secondary">Пока сообщений нет.</Typography>}
+1 -1
View File
@@ -216,7 +216,7 @@ export function ProductPage() {
/>
{body ? (
<Box sx={{ color: 'text.secondary' }}>
<RichTextMessageContent value={body} />
<RichTextMessageContent value={body} tone="review" />
</Box>
) : (
<Typography variant="caption" color="text.secondary">