upgrade navigation and route prefetch responsiveness
This commit is contained in:
18
lib/types.ts
18
lib/types.ts
@@ -158,3 +158,21 @@ export type CompanyAnalysis = {
|
||||
filings: Filing[];
|
||||
aiReports: CompanyAiReport[];
|
||||
};
|
||||
|
||||
export type NavGroup = 'overview' | 'research' | 'portfolio';
|
||||
export type NavMatchMode = 'exact' | 'prefix';
|
||||
|
||||
export type NavItem = {
|
||||
id: string;
|
||||
href: string;
|
||||
label: string;
|
||||
group: NavGroup;
|
||||
matchMode: NavMatchMode;
|
||||
preserveTicker?: boolean;
|
||||
mobilePrimary?: boolean;
|
||||
};
|
||||
|
||||
export type ActiveContext = {
|
||||
pathname: string;
|
||||
activeTicker: string | null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user