fix: supprimer stat Distance sargasses (redondante avec la liste des bancs)

This commit is contained in:
Gwadaking
2026-04-09 01:00:25 -04:00
parent 9175f63e39
commit 38e810bd79
4 changed files with 9 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@@ -8,7 +8,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fredoka+One&family=Fredoka:wght@400;500;600&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&family=Fredoka:wght@400;500;600&display=swap" rel="stylesheet">
<script type="module" crossorigin src="/assets/index-D427S7Nc.js"></script> <script type="module" crossorigin src="/assets/index-DwKx7QLX.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CJwa9VxM.css"> <link rel="stylesheet" crossorigin href="/assets/index-CJwa9VxM.css">
</head> </head>
<body> <body>

View File

@@ -132,15 +132,12 @@ export default function SpotPanel({ spot, activeStep, onClose }) {
); );
})()} })()}
<dl className="spot-panel__details">
{displayScore.distance != null && (
<><dt>Distance sargasses</dt><dd>{displayScore.distance} km</dd></>
)}
{activeStep === 'now' && displayScore.computedAt && ( {activeStep === 'now' && displayScore.computedAt && (
<><dt>Calculé le</dt> <dl className="spot-panel__details">
<dd>{new Date(displayScore.computedAt).toLocaleString('fr-FR')}</dd></> <dt>Calculé le</dt>
)} <dd>{new Date(displayScore.computedAt).toLocaleString('fr-FR')}</dd>
</dl> </dl>
)}
<ScoreBreakdown breakdown={displayScore.breakdown} /> <ScoreBreakdown breakdown={displayScore.breakdown} />