Rename SlotTime to TimeSlot
This commit is contained in:
parent
b0c6569685
commit
8f3fedcf07
|
@ -1,6 +1,6 @@
|
||||||
import { format } from 'date-fns';
|
import { format } from 'date-fns';
|
||||||
|
|
||||||
export default function SlotTime({
|
export default function TimeSlot({
|
||||||
start,
|
start,
|
||||||
end,
|
end,
|
||||||
}) {
|
}) {
|
|
@ -9,7 +9,7 @@ import { langs } from './constants.js';
|
||||||
import Speaker from './Speaker.jsx';
|
import Speaker from './Speaker.jsx';
|
||||||
import FeedbackLink from './FeedbackLink.jsx';
|
import FeedbackLink from './FeedbackLink.jsx';
|
||||||
import DateHeader from './Cell/DateHeader.jsx';
|
import DateHeader from './Cell/DateHeader.jsx';
|
||||||
import SlotTime from './Cell/SlotTime.jsx';
|
import TimeSlot from './Cell/TimeSlot.jsx';
|
||||||
|
|
||||||
export default function Schedule({
|
export default function Schedule({
|
||||||
conferenceId,
|
conferenceId,
|
||||||
|
@ -58,7 +58,7 @@ export default function Schedule({
|
||||||
{rows.map(row => <tr key={row.id}>
|
{rows.map(row => <tr key={row.id}>
|
||||||
{row.cells.map(cell => <td key={cell.id} {...cell.attributes}>
|
{row.cells.map(cell => <td key={cell.id} {...cell.attributes}>
|
||||||
{cell.dateHeader && <DateHeader date={cell.dateHeader} lang={lang} />}
|
{cell.dateHeader && <DateHeader date={cell.dateHeader} lang={lang} />}
|
||||||
{cell.slotTime && <SlotTime {...cell.slotTime} />}
|
{cell.timeSlot && <TimeSlot {...cell.timeSlot} />}
|
||||||
{cell.event && <Event {...cell.event} />}
|
{cell.event && <Event {...cell.event} />}
|
||||||
</td>)}
|
</td>)}
|
||||||
</tr>)}
|
</tr>)}
|
||||||
|
|
|
@ -60,7 +60,7 @@ export default function useScheduleTable({
|
||||||
id: 'slot-'.concat(getTime(date).toString()),
|
id: 'slot-'.concat(getTime(date).toString()),
|
||||||
cells: [{
|
cells: [{
|
||||||
id: 1,
|
id: 1,
|
||||||
slotTime: {
|
timeSlot: {
|
||||||
start: date,
|
start: date,
|
||||||
end: nextDate,
|
end: nextDate,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue