ajout page envoi mails groupes
This commit is contained in:
@@ -14,7 +14,7 @@ import { Badge } from '@/components/ui/badge';
|
||||
|
||||
import AuthGuard from '@/components/AuthGuard';
|
||||
import Footer from '@/components/Footer';
|
||||
import { FolderOpen, Users, FileText, Plus, BarChart3, Settings, Check, Copy } from 'lucide-react';
|
||||
import { FolderOpen, Users, FileText, Plus, BarChart3, Settings, Check, Copy, Mail } from 'lucide-react';
|
||||
import StatusSwitch from '@/components/StatusSwitch';
|
||||
import { MarkdownContent } from '@/components/MarkdownContent';
|
||||
|
||||
@@ -437,8 +437,16 @@ function AdminPageContent() {
|
||||
</div>
|
||||
</div>
|
||||
) : (campaign.status === 'voting' || campaign.status === 'closed') ? (
|
||||
/* Bouton Statistiques pour les campagnes en vote/fermées */
|
||||
<div className="flex justify-center">
|
||||
/* Boutons pour les campagnes en vote/fermées */
|
||||
<div className="flex justify-center gap-3">
|
||||
{campaign.status === 'voting' && (
|
||||
<Button asChild variant="outline" className="border-slate-200 dark:border-slate-700 hover:bg-slate-50 dark:hover:bg-slate-800 text-slate-700 dark:text-slate-300">
|
||||
<Link href={`/admin/campaigns/${campaign.id}/send-emails`}>
|
||||
<Mail className="w-4 h-4 mr-2" />
|
||||
Envoyer emails
|
||||
</Link>
|
||||
</Button>
|
||||
)}
|
||||
<Button asChild variant="outline" className="border-slate-200 dark:border-slate-700 hover:bg-slate-50 dark:hover:bg-slate-800 text-slate-700 dark:text-slate-300">
|
||||
<Link href={`/admin/campaigns/${campaign.id}/stats`}>
|
||||
<BarChart3 className="w-4 h-4 mr-2" />
|
||||
|
||||
Reference in New Issue
Block a user