diff --git a/src/Schedule/Schedule.jsx b/src/Schedule/Schedule.jsx
index cc41a01..95ad4b3 100644
--- a/src/Schedule/Schedule.jsx
+++ b/src/Schedule/Schedule.jsx
@@ -57,6 +57,7 @@ export default function Schedule({
{header.length > 0 &&
+ |
{header.map(hall => {hall.name[lang]} | )}
}
diff --git a/src/hooks/useScheduleTable.js b/src/hooks/useScheduleTable.js
index 4c18639..03621af 100644
--- a/src/hooks/useScheduleTable.js
+++ b/src/hooks/useScheduleTable.js
@@ -1,6 +1,5 @@
import { useMemo } from 'react';
import { sorter } from '../utils.js';
-import { langs } from '../Schedule/constants.js';
import { compareAsc, getTime, isSameDay, toDate } from 'date-fns';
export default function useScheduleTable({
@@ -27,13 +26,6 @@ export default function useScheduleTable({
const halls = allHalls.filter(hall => hallIds.has(hall.id));
const skipHallSlots = new Map();
- const header = [{
- id: 0,
- name: Object.fromEntries(Object.keys(langs).map(lang => [lang, ''])),
- },
- ...halls,
- ];
-
const rows = microslots.flatMap((date, slotsIndex, slotsArray) => {
const isFirst = slotsIndex === 0;
const isLast = slotsIndex === slotsArray.length - 1;
@@ -126,7 +118,7 @@ export default function useScheduleTable({
cells: [{
id: 'header',
attributes: {
- colSpan: header.length,
+ colSpan: halls.length + 1,
},
dateHeader: date,
}],
@@ -148,7 +140,7 @@ export default function useScheduleTable({
});
return {
- header,
+ header: halls,
rows,
tracks,
events,