Rename SlotTime to TimeSlot
This commit is contained in:
parent
b0c6569685
commit
8f3fedcf07
|
@ -1,6 +1,6 @@
|
|||
import { format } from 'date-fns';
|
||||
|
||||
export default function SlotTime({
|
||||
export default function TimeSlot({
|
||||
start,
|
||||
end,
|
||||
}) {
|
|
@ -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>)}
|
||||
|
|
|
@ -60,7 +60,7 @@ export default function useScheduleTable({
|
|||
id: 'slot-'.concat(getTime(date).toString()),
|
||||
cells: [{
|
||||
id: 1,
|
||||
slotTime: {
|
||||
timeSlot: {
|
||||
start: date,
|
||||
end: nextDate,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue