Ajout du message informatif pour le mode hors ligne dans ClientList
This commit is contained in:
@ -83,7 +83,7 @@ export default function ClientList({ onEdit, onRefresh }: ClientListProps) {
|
|||||||
if (loading) {
|
if (loading) {
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center justify-center py-8">
|
<div className="flex items-center justify-center py-8">
|
||||||
<p className="text-gray-600">Chargement...</p>
|
<p className="text-gray-600 dark:text-gray-400">Chargement...</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -91,8 +91,12 @@ export default function ClientList({ onEdit, onRefresh }: ClientListProps) {
|
|||||||
if (clients.length === 0) {
|
if (clients.length === 0) {
|
||||||
return (
|
return (
|
||||||
<Card>
|
<Card>
|
||||||
<CardContent className="py-8 text-center">
|
<CardContent className="py-8 text-center space-y-4">
|
||||||
<p className="text-gray-600">Aucun client pour le moment.</p>
|
<p className="text-gray-600 dark:text-gray-400">Aucun client pour le moment.</p>
|
||||||
|
<div className="bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-xl p-4 text-sm text-yellow-800 dark:text-yellow-300">
|
||||||
|
<p className="font-semibold mb-1">⚠️ Mode hors ligne</p>
|
||||||
|
<p>L'application admin nécessite une connexion au serveur pour fonctionner. Les API routes ne sont pas disponibles en mode statique.</p>
|
||||||
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user