summaryrefslogtreecommitdiff
path: root/frontend/components/prism/Sidebar.tsx
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-05-18 00:46:27 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-05-18 00:46:27 -0700
commit45f3eff514a7b4c2f03e801b204920f13671dd5d (patch)
treea71e4cd06a4af8357003c9942760e019f52414dc /frontend/components/prism/Sidebar.tsx
parent147664128fa0281333ba3150e007ed8e2f6a616a (diff)
parent1e349b8904c6fa52c6f0925453513354c1a4e392 (diff)
Merge worktree-financials-tab: add financials tab (income/balance/cashflow)
Diffstat (limited to 'frontend/components/prism/Sidebar.tsx')
-rw-r--r--frontend/components/prism/Sidebar.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/components/prism/Sidebar.tsx b/frontend/components/prism/Sidebar.tsx
index 7f106d8..fb8ebcf 100644
--- a/frontend/components/prism/Sidebar.tsx
+++ b/frontend/components/prism/Sidebar.tsx
@@ -12,6 +12,7 @@ type Props = {
watchlistError: string | null;
onSelectTicker: (symbol: string) => void;
onRemoveTicker: (symbol: string) => void;
+ onSelectTab: (key: string) => void;
};
export function Sidebar({
@@ -21,7 +22,8 @@ export function Sidebar({
watchlist,
watchlistError,
onSelectTicker,
- onRemoveTicker
+ onRemoveTicker,
+ onSelectTab
}: Props) {
return (
<aside className="psm-side">
@@ -46,6 +48,7 @@ export function Sidebar({
type="button"
className={`psm-nav-item${active ? " active" : ""}${item.disabled ? " disabled" : ""}`}
disabled={item.disabled}
+ onClick={item.disabled ? undefined : () => onSelectTab(item.key)}
>
<span className={`psm-icon icon-${item.icon}`} aria-hidden />
<span className="psm-nav-copy">