48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
// ─── Route Name Constants ────────────────────────────────────────────────────
|
|
export const route = {
|
|
// Auth
|
|
login: 'login',
|
|
|
|
// Main tabs
|
|
dashboard: 'dashboard',
|
|
leads: 'leads',
|
|
customers: 'customers',
|
|
proposals: 'proposals',
|
|
estimates: 'estimates',
|
|
invoices: 'invoices',
|
|
projects: 'projects',
|
|
tasks: 'tasks',
|
|
tickets: 'tickets',
|
|
|
|
// Sub screens
|
|
addLead: 'addLead',
|
|
leadDetails: 'leadDetails',
|
|
leadProposals: 'leadProposals',
|
|
leadTasks: 'leadTasks',
|
|
leadNotes: 'leadNotes',
|
|
profile: 'profile',
|
|
} as const;
|
|
|
|
// ─── Route Param Types ────────────────────────────────────────────────────────
|
|
// Use `undefined` for screens that take no params.
|
|
// Add typed params here when a screen needs them, e.g. addLead: { leadId: string }
|
|
export type RouteParams = {
|
|
login: undefined;
|
|
dashboard: undefined;
|
|
leads: undefined;
|
|
customers: undefined;
|
|
proposals: undefined;
|
|
estimates: undefined;
|
|
invoices: undefined;
|
|
projects: undefined;
|
|
tasks: undefined;
|
|
tickets: undefined;
|
|
addLead: undefined;
|
|
leadDetails: { lead: any };
|
|
leadProposals: { leadId: string };
|
|
leadTasks: { leadId: string };
|
|
leadNotes: { leadId: string };
|
|
profile: undefined;
|
|
};
|
|
|