From 8f3fedcf0703167fb90406b68bb3748fe5ccaa92 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Sat, 28 Sep 2024 21:09:11 +0300 Subject: [PATCH] Rename SlotTime to TimeSlot --- src/Schedule/Cell/{SlotTime.jsx => TimeSlot.jsx} | 2 +- src/Schedule/Schedule.jsx | 4 ++-- src/hooks/useScheduleTable.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/Schedule/Cell/{SlotTime.jsx => TimeSlot.jsx} (80%) 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, }