mirror of
https://github.com/caty21/forex-dashboard.git
synced 2026-07-27 20:37:45 +00:00
fix: sync — goToSignauxSlide force mispricing tab, goToMacroSlide force overview tab
Quand sync est actif, cliquer un slide Signaux (OIS/COT/Sent) switchait le slide
en interne sur les autres cartes mais ces cartes restaient sur l'onglet Aperçu —
la synchro était invisible. Fix : propager aussi onCardTabChange("mispricing")
depuis goToSignauxSlide et onCardTabChange("overview") depuis goToMacroSlide.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -939,7 +939,8 @@ export default function CurrencyCard({
|
||||
return id;
|
||||
});
|
||||
onMacroSlideChange?.(id);
|
||||
}, [onMacroSlideChange]);
|
||||
onCardTabChange?.("overview");
|
||||
}, [onMacroSlideChange, onCardTabChange]);
|
||||
|
||||
// Sync depuis une autre carte : calculer la direction par rapport à la valeur précédente
|
||||
useEffect(() => {
|
||||
@@ -982,7 +983,8 @@ export default function CurrencyCard({
|
||||
return id;
|
||||
});
|
||||
onSignauxSlideChange?.(id);
|
||||
}, [onSignauxSlideChange]);
|
||||
onCardTabChange?.("mispricing");
|
||||
}, [onSignauxSlideChange, onCardTabChange]);
|
||||
|
||||
// ── Recent published events for this currency (last 72h, non-low impact) ─────
|
||||
const recentEvents = useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user