diff --git a/src/Schedule/Cell/SlotTime.jsx b/src/Schedule/Cell/TimeSlot.jsx similarity index 80% rename from src/Schedule/Cell/SlotTime.jsx rename to src/Schedule/Cell/TimeSlot.jsx index d78de11..dd51f4a 100644 --- a/src/Schedule/Cell/SlotTime.jsx +++ b/src/Schedule/Cell/TimeSlot.jsx @@ -1,6 +1,6 @@ import { format } from 'date-fns'; -export default function SlotTime({ +export default function TimeSlot({ start, end, }) { diff --git a/src/Schedule/Schedule.jsx b/src/Schedule/Schedule.jsx index f332e6c..3255909 100644 --- a/src/Schedule/Schedule.jsx +++ b/src/Schedule/Schedule.jsx @@ -9,7 +9,7 @@ import { langs } from './constants.js'; import Speaker from './Speaker.jsx'; import FeedbackLink from './FeedbackLink.jsx'; import DateHeader from './Cell/DateHeader.jsx'; -import SlotTime from './Cell/SlotTime.jsx'; +import TimeSlot from './Cell/TimeSlot.jsx'; export default function Schedule({ conferenceId, @@ -58,7 +58,7 @@ export default function Schedule({ {rows.map(row => {row.cells.map(cell => {cell.dateHeader && } - {cell.slotTime && } + {cell.timeSlot && } {cell.event && } )} )} diff --git a/src/hooks/useScheduleTable.js b/src/hooks/useScheduleTable.js index dcfff53..44bd770 100644 --- a/src/hooks/useScheduleTable.js +++ b/src/hooks/useScheduleTable.js @@ -60,7 +60,7 @@ export default function useScheduleTable({ id: 'slot-'.concat(getTime(date).toString()), cells: [{ id: 1, - slotTime: { + timeSlot: { start: date, end: nextDate, }