Amélioration pour nouveau connecté
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user