Rebuild company overview analysis page
This commit is contained in:
@@ -67,7 +67,7 @@ const NAV_ITEMS: NavConfigItem[] = [
|
||||
{
|
||||
id: "analysis",
|
||||
href: "/analysis",
|
||||
label: "Analysis",
|
||||
label: "Overview",
|
||||
icon: LineChart,
|
||||
group: "research",
|
||||
matchMode: "prefix",
|
||||
@@ -200,41 +200,41 @@ function buildDefaultBreadcrumbs(
|
||||
|
||||
if (pathname.startsWith("/analysis/reports/")) {
|
||||
return [
|
||||
{ label: "Analysis", href: analysisHref },
|
||||
{ label: "Overview", href: analysisHref },
|
||||
{ label: "Reports", href: analysisHref },
|
||||
{ label: activeTicker ?? "Summary" },
|
||||
];
|
||||
}
|
||||
|
||||
if (pathname.startsWith("/analysis")) {
|
||||
return [{ label: "Analysis" }];
|
||||
return [{ label: "Overview" }];
|
||||
}
|
||||
|
||||
if (pathname.startsWith("/research")) {
|
||||
return [
|
||||
{ label: "Analysis", href: analysisHref },
|
||||
{ label: "Overview", href: analysisHref },
|
||||
{ label: "Research", href: researchHref },
|
||||
];
|
||||
}
|
||||
|
||||
if (pathname.startsWith("/financials")) {
|
||||
return [{ label: "Analysis", href: analysisHref }, { label: "Financials" }];
|
||||
return [{ label: "Overview", href: analysisHref }, { label: "Financials" }];
|
||||
}
|
||||
|
||||
if (pathname.startsWith("/graphing")) {
|
||||
return [
|
||||
{ label: "Analysis", href: analysisHref },
|
||||
{ label: "Overview", href: analysisHref },
|
||||
{ label: "Graphing", href: graphingHref },
|
||||
{ label: activeTicker ?? "Compare Set" },
|
||||
];
|
||||
}
|
||||
|
||||
if (pathname.startsWith("/filings")) {
|
||||
return [{ label: "Analysis", href: analysisHref }, { label: "Filings" }];
|
||||
return [{ label: "Overview", href: analysisHref }, { label: "Filings" }];
|
||||
}
|
||||
|
||||
if (pathname.startsWith("/search")) {
|
||||
return [{ label: "Analysis", href: analysisHref }, { label: "Search" }];
|
||||
return [{ label: "Overview", href: analysisHref }, { label: "Search" }];
|
||||
}
|
||||
|
||||
if (pathname.startsWith("/portfolio")) {
|
||||
|
||||
Reference in New Issue
Block a user