diff --git a/src/App.jsx b/src/App.jsx index 19090c71..919f7994 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -190,10 +190,11 @@ if (latestValue && prevValue) { const news = [ { type: "Forex", - label: `EUR/USD: ${latestValue?.toFixed(4)}`, + pair: "EUR/USD", + value: latestValue, // nombre date: latestDate, icon: TrendingUp, - trendValue, // <- même logique que KPIs + trendValue, }, // { // type: "Logistic", @@ -537,18 +538,29 @@ export default function App() {
openInTryton('currency.currency', 2, ["form"])} + onClick={() => openInTryton("currency.currency", 2, ["form"])} >
{n.type}
+
- {n.label} + {/* PAIRE */} +
+ {n.pair} +
+ + {/* VALEUR */} +
+ {n.value?.toFixed(4)} +
+ + {/* TREND */} {n.trendValue !== null && ( = 0 ? "bg-green-50 text-green-700 border-green-200 dark:bg-green-900/30 dark:text-green-400 dark:border-green-800" @@ -562,10 +574,12 @@ export default function App() { )}
+
{n.date}
+ ); })}