mirror of
https://github.com/caty21/forex-dashboard.git
synced 2026-07-27 20:37:45 +00:00
auto: sync 2026-06-02 19:38
This commit is contained in:
+11
-11
@@ -439,9 +439,12 @@ export default function CurrencyCard({ currency, expectations, yields, sentiment
|
|||||||
return `Prel./Flash — Final prévu : ${fd._finalForecast?.toFixed(1)}% (${arrow}${d > 0 ? "+" : ""}${d.toFixed(2)})`;
|
return `Prel./Flash — Final prévu : ${fd._finalForecast?.toFixed(1)}% (${arrow}${d > 0 ? "+" : ""}${d.toFixed(2)})`;
|
||||||
})()}
|
})()}
|
||||||
info={(() => {
|
info={(() => {
|
||||||
const fd = (inds?.cpiCore as (Ind & { _finalDelta?: number }) | null);
|
const fd = (inds?.cpiCore as (Ind & { _finalForecast?: number; _finalDelta?: number }) | null);
|
||||||
if (fd?._finalDelta === undefined) return null;
|
const base = "=Core Inflation Rate YoY";
|
||||||
return fd._finalDelta > 0 ? "↑F" : fd._finalDelta < 0 ? "↓F" : "=F";
|
if (fd?._finalForecast === undefined) return base;
|
||||||
|
const d = fd._finalDelta ?? 0;
|
||||||
|
const arrow = d > 0 ? "↑" : d < 0 ? "↓" : "=";
|
||||||
|
return `${base} • Prel./Flash — Final prévu : ${fd._finalForecast?.toFixed(1)}% (${arrow}${d > 0 ? "+" : ""}${d.toFixed(2)})`;
|
||||||
})()}
|
})()}
|
||||||
/>
|
/>
|
||||||
<Row
|
<Row
|
||||||
@@ -449,17 +452,14 @@ export default function CurrencyCard({ currency, expectations, yields, sentiment
|
|||||||
ind={inds?.cpiYoY ?? null}
|
ind={inds?.cpiYoY ?? null}
|
||||||
unit="%"
|
unit="%"
|
||||||
consensus={fc?.cpi ?? null}
|
consensus={fc?.cpi ?? null}
|
||||||
tooltip={(() => {
|
tooltip={null}
|
||||||
|
info={(() => {
|
||||||
const fd = (inds?.cpiYoY as (Ind & { _finalForecast?: number; _finalDelta?: number }) | null);
|
const fd = (inds?.cpiYoY as (Ind & { _finalForecast?: number; _finalDelta?: number }) | null);
|
||||||
if (fd?._finalForecast === undefined) return null;
|
const base = "=Inflation Rate YoY";
|
||||||
|
if (fd?._finalForecast === undefined) return base;
|
||||||
const d = fd._finalDelta ?? 0;
|
const d = fd._finalDelta ?? 0;
|
||||||
const arrow = d > 0 ? "↑" : d < 0 ? "↓" : "=";
|
const arrow = d > 0 ? "↑" : d < 0 ? "↓" : "=";
|
||||||
return `Prel./Flash — Final prévu : ${fd._finalForecast?.toFixed(1)}% (${arrow}${d > 0 ? "+" : ""}${d.toFixed(2)})`;
|
return `${base} • Prel./Flash — Final prévu : ${fd._finalForecast?.toFixed(1)}% (${arrow}${d > 0 ? "+" : ""}${d.toFixed(2)})`;
|
||||||
})()}
|
|
||||||
info={(() => {
|
|
||||||
const fd = (inds?.cpiYoY as (Ind & { _finalDelta?: number }) | null);
|
|
||||||
if (fd?._finalDelta === undefined) return null;
|
|
||||||
return fd._finalDelta > 0 ? "↑F" : fd._finalDelta < 0 ? "↓F" : "=F";
|
|
||||||
})()}
|
})()}
|
||||||
/>
|
/>
|
||||||
{inds?.commodityPricesYoY && (
|
{inds?.commodityPricesYoY && (
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user