base commit
This commit is contained in:
@@ -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>}
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user