summaryrefslogtreecommitdiff
path: root/frontend/components/prism/FinancialsCard.tsx
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-05-18 22:18:20 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-05-18 22:18:20 -0700
commit16d9eb4f864fe8c29a9dee57ec47f77b34ae0df4 (patch)
tree36d56f7ed8bc5d893fafce807f7846e6c320b1cc /frontend/components/prism/FinancialsCard.tsx
parent566f59cb00958caa073279a7bb698e1ede48c0d4 (diff)
feat: wire Ratios subtab into FinancialsPage, move tab strip up from FinancialsCard
Diffstat (limited to 'frontend/components/prism/FinancialsCard.tsx')
-rw-r--r--frontend/components/prism/FinancialsCard.tsx20
1 files changed, 0 insertions, 20 deletions
diff --git a/frontend/components/prism/FinancialsCard.tsx b/frontend/components/prism/FinancialsCard.tsx
index 94a6618..43a2dc2 100644
--- a/frontend/components/prism/FinancialsCard.tsx
+++ b/frontend/components/prism/FinancialsCard.tsx
@@ -9,16 +9,9 @@ type Props = {
data: FinancialsResponse;
statement: StatementKey;
period: PeriodKey;
- onChangeStatement: (s: StatementKey) => void;
onChangePeriod: (p: PeriodKey) => void;
};
-const STMT_LABELS: Record<StatementKey, string> = {
- income: "INCOME",
- balance: "BALANCE",
- cash_flow: "CASH FLOW",
-};
-
function fmtFinVal(val: number | null | undefined, isMargin: boolean): string {
if (val === null || val === undefined) return "—";
if (isMargin) return `${(val * 100).toFixed(1)}%`;
@@ -70,7 +63,6 @@ export function FinancialsCard({
data,
statement,
period,
- onChangeStatement,
onChangePeriod,
}: Props) {
const stmt = data[statement];
@@ -79,18 +71,6 @@ export function FinancialsCard({
return (
<section className="psm-card psm-financials-card">
<div className="psm-fin-header">
- <div className="psm-fin-tabs">
- {(["income", "balance", "cash_flow"] as StatementKey[]).map((key) => (
- <button
- key={key}
- type="button"
- className={`psm-fin-tab${statement === key ? " active" : ""}`}
- onClick={() => onChangeStatement(key)}
- >
- {STMT_LABELS[key]}
- </button>
- ))}
- </div>
<div className="psm-fin-period">
{(["annual", "quarterly"] as PeriodKey[]).map((p) => (
<button