Rename SlotTime to TimeSlot

This commit is contained in:
Vencislav Atanasov 2024-09-28 21:09:11 +03:00
parent b0c6569685
commit 8f3fedcf07
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import { format } from 'date-fns';
export default function SlotTime({
export default function TimeSlot({
start,
end,
}) {

View File

@ -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 => <tr key={row.id}>
{row.cells.map(cell => <td key={cell.id} {...cell.attributes}>
{cell.dateHeader && <DateHeader date={cell.dateHeader} lang={lang} />}
{cell.slotTime && <SlotTime {...cell.slotTime} />}
{cell.timeSlot && <TimeSlot {...cell.timeSlot} />}
{cell.event && <Event {...cell.event} />}
</td>)}
</tr>)}

View File

@ -60,7 +60,7 @@ export default function useScheduleTable({
id: 'slot-'.concat(getTime(date).toString()),
cells: [{
id: 1,
slotTime: {
timeSlot: {
start: date,
end: nextDate,
}