diff --git a/src/components/sections/Gantt.tsx b/src/components/sections/Gantt.tsx index 6b52a81..5c3b079 100644 --- a/src/components/sections/Gantt.tsx +++ b/src/components/sections/Gantt.tsx @@ -12,7 +12,7 @@ const MONTH_ABBR = [ function buildYearSegments() { const segments: { year: number; span: number; startMonthIndex: number }[] = [] let monthOfYear = timeline.startMonthOfYear // 8 = agosto - let year = timeline.startYear + let year = Number(timeline.startYear) let current = { year, span: 0, startMonthIndex: 1 } for (let m = 1; m <= timeline.totalMonths; m++) { if (current.span === 0) current.startMonthIndex = m diff --git a/src/data/project.ts b/src/data/project.ts index b2b8c43..c505e3d 100644 --- a/src/data/project.ts +++ b/src/data/project.ts @@ -77,6 +77,7 @@ export type Task = { title: string startMonth: number endMonth: number + description?: string } export const tasks: Task[] = [ @@ -149,7 +150,7 @@ export const reports: Report[] = [ export const timeline = { totalMonths: 36, startYear: 2025, - startMonthOfYear: 8, // agosto + startMonthOfYear: 8 as number, // agosto } as const // ── Indicators ────────────────────────────────────────────────────────────