mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
Update AdminBroadcasts.tsx
This commit is contained in:
@@ -815,16 +815,16 @@ function CreateBroadcastModal({ onClose, onSuccess }: CreateModalProps) {
|
|||||||
|
|
||||||
{/* Footer */}
|
{/* Footer */}
|
||||||
<div className="flex items-center justify-between border-t border-dark-700 p-4">
|
<div className="flex items-center justify-between border-t border-dark-700 p-4">
|
||||||
<div className="text-sm text-dark-400">
|
<div className="flex items-center gap-4 text-sm text-dark-400">
|
||||||
{(channel === 'telegram' || channel === 'both') && telegramRecipientsCount !== null && (
|
{(channel === 'telegram' || channel === 'both') && telegramRecipientsCount !== null && (
|
||||||
<span className="mr-4">
|
<span className="flex items-center gap-1">
|
||||||
<TelegramIcon className="mr-1 inline h-4 w-4" />
|
<TelegramIcon />
|
||||||
<strong className="text-blue-400">{telegramRecipientsCount}</strong>
|
<strong className="text-blue-400">{telegramRecipientsCount}</strong>
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
{(channel === 'email' || channel === 'both') && emailRecipientsCount !== null && (
|
{(channel === 'email' || channel === 'both') && emailRecipientsCount !== null && (
|
||||||
<span>
|
<span className="flex items-center gap-1">
|
||||||
<EmailIcon className="mr-1 inline h-4 w-4" />
|
<EmailIcon />
|
||||||
<strong className="text-purple-400">{emailRecipientsCount}</strong>
|
<strong className="text-purple-400">{emailRecipientsCount}</strong>
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
@@ -921,8 +921,8 @@ function BroadcastDetailModal({ broadcast, onClose, onStop, isStopping }: Detail
|
|||||||
{/* Telegram Message */}
|
{/* Telegram Message */}
|
||||||
{broadcast.message_text && (
|
{broadcast.message_text && (
|
||||||
<div>
|
<div>
|
||||||
<p className="mb-1 text-sm text-dark-400">
|
<p className="mb-1 flex items-center gap-1 text-sm text-dark-400">
|
||||||
<TelegramIcon className="mr-1 inline h-4 w-4" />
|
<TelegramIcon />
|
||||||
{t('admin.broadcasts.message')}
|
{t('admin.broadcasts.message')}
|
||||||
</p>
|
</p>
|
||||||
<div className="max-h-40 overflow-y-auto whitespace-pre-wrap rounded-lg bg-dark-700 p-3 text-sm text-dark-100">
|
<div className="max-h-40 overflow-y-auto whitespace-pre-wrap rounded-lg bg-dark-700 p-3 text-sm text-dark-100">
|
||||||
@@ -934,8 +934,8 @@ function BroadcastDetailModal({ broadcast, onClose, onStop, isStopping }: Detail
|
|||||||
{/* Email Subject */}
|
{/* Email Subject */}
|
||||||
{broadcast.email_subject && (
|
{broadcast.email_subject && (
|
||||||
<div>
|
<div>
|
||||||
<p className="mb-1 text-sm text-dark-400">
|
<p className="mb-1 flex items-center gap-1 text-sm text-dark-400">
|
||||||
<EmailIcon className="mr-1 inline h-4 w-4" />
|
<EmailIcon />
|
||||||
{t('admin.broadcasts.emailSubject')}
|
{t('admin.broadcasts.emailSubject')}
|
||||||
</p>
|
</p>
|
||||||
<div className="rounded-lg bg-dark-700 p-3 text-sm text-dark-100">
|
<div className="rounded-lg bg-dark-700 p-3 text-sm text-dark-100">
|
||||||
|
|||||||
Reference in New Issue
Block a user