From ab699a136169e8661b4f22fbce023ca7f033ce18 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Mon, 29 Jun 2026 01:41:24 -0700 Subject: feat: update ValuationPage and valuation cards --- frontend/components/prism/ValuationOverviewCard.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'frontend/components/prism/ValuationOverviewCard.tsx') diff --git a/frontend/components/prism/ValuationOverviewCard.tsx b/frontend/components/prism/ValuationOverviewCard.tsx index 9e59787..a881c72 100644 --- a/frontend/components/prism/ValuationOverviewCard.tsx +++ b/frontend/components/prism/ValuationOverviewCard.tsx @@ -1,5 +1,6 @@ import type { TickerOverview, ValuationResponse } from "@/types/api"; import { fmtCurrency, fmtLarge, fmtNumber, fmtPct } from "@/lib/format"; +import { CurrencyWarning } from "./CurrencyWarning"; type ValState = "idle" | "loading" | "ready" | "error"; @@ -11,9 +12,9 @@ type Props = { export function ValuationOverviewCard({ overview, valuation, valState }: Props) { const rows = [ - { label: "Market Cap", value: fmtLarge(overview.stats.market_cap), missing: overview.stats.market_cap == null }, + { label: "Market Cap", value: fmtLarge(overview.stats.market_cap, overview.currency), missing: overview.stats.market_cap == null }, { label: "P/E TTM", value: overview.stats.trailing_pe == null ? "-" : `${fmtNumber(overview.stats.trailing_pe)}x`, missing: overview.stats.trailing_pe == null }, - { label: "EPS TTM", value: fmtCurrency(overview.stats.trailing_eps), missing: overview.stats.trailing_eps == null }, + { label: "EPS TTM", value: fmtCurrency(overview.stats.trailing_eps, 2, overview.currency), missing: overview.stats.trailing_eps == null }, { label: "P/B", value: overview.ratios.price_to_book == null ? "-" : `${fmtNumber(overview.ratios.price_to_book)}x`, missing: overview.ratios.price_to_book == null }, { label: "P/S", value: overview.ratios.price_to_sales == null ? "-" : `${fmtNumber(overview.ratios.price_to_sales)}x`, missing: overview.ratios.price_to_sales == null }, { label: "EV/Sales", value: overview.ratios.ev_to_sales == null ? "-" : `${fmtNumber(overview.ratios.ev_to_sales)}x`, missing: overview.ratios.ev_to_sales == null }, @@ -30,6 +31,7 @@ export function ValuationOverviewCard({ overview, valuation, valState }: Props)
Valuation

Valuation

+
{visible.length > 0 && ( @@ -63,7 +65,7 @@ export function ValuationOverviewCard({ overview, valuation, valState }: Props)
DCF Intrinsic Value - {fmtCurrency(dcf.intrinsic_value_per_share)} + {fmtCurrency(dcf.intrinsic_value_per_share, 2, valuation?.currency ?? overview.currency)}
{dcf.growth_rate_used != null && (
-- cgit v1.3-2-g0d8e