Amélioration pour nouveau connecté

This commit is contained in:
2026-07-03 20:44:32 +02:00
parent 53742568ce
commit ff77ee977d
6 changed files with 87 additions and 6 deletions
+18 -1
View File
@@ -597,7 +597,7 @@ export default function Plateformes() {
const netMode = displayMode === 'net';
const prevYearLabel = selectedYear ? Number(selectedYear) - 1 : new Date().getFullYear() - 1;
if (!loading && platOptions.length === 0) {
if (!loading && plats.length === 0) {
return (
<>
<div className="topbar">
@@ -608,6 +608,23 @@ export default function Plateformes() {
);
}
if (!loading && platOptions.length === 0) {
return (
<>
<div className="topbar">
<h2><PageIcon name="plateforme" />Plateformes</h2>
</div>
<EmptyState
icon="📊"
title="Aucun investissement pour le moment"
message="Vos plateformes sont configurées, mais aucun investissement n'y a encore été ajouté. Ajoutez un investissement pour voir apparaître les données de vos plateformes."
cta="Ajouter un investissement"
to="/investissements?new=1"
/>
</>
);
}
return (
<>
<div className="topbar">