Compare commits
2 Commits
4e68064e02
...
01f29b80c5
Author | SHA1 | Date |
---|---|---|
Vencislav Atanasov | 01f29b80c5 | |
Vencislav Atanasov | 3854bc0507 |
|
@ -99,7 +99,7 @@ export default function Schedule({
|
|||
{<>
|
||||
<div className="grid members">
|
||||
{speakers.map(speaker => <div key={speaker.id} className="col4 wmember">
|
||||
<a href={'#'.concat(speaker.id)}>
|
||||
<a href={'#speaker-'.concat(speaker.id)}>
|
||||
<img width="100" height="100" src={speaker.picture} alt={speaker.name} />
|
||||
</a>
|
||||
</div>)}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { useMemo } from 'react';
|
||||
import { getMidnightTimestamp, isSameDay, sorter } from '../utils.js';
|
||||
import { langs } from '../Schedule/constants.js';
|
||||
|
||||
export default function useScheduleTable({
|
||||
eventTypeId,
|
||||
|
@ -24,7 +25,12 @@ export default function useScheduleTable({
|
|||
void(days);
|
||||
void(hallSlots);
|
||||
|
||||
const header = filteredHalls;
|
||||
const header = [{
|
||||
id: 0,
|
||||
name: Object.fromEntries(Object.keys(langs).map(lang => [lang, ''])),
|
||||
},
|
||||
...filteredHalls,
|
||||
];
|
||||
const rows = days.flatMap(day => [{
|
||||
id: 'header-'.concat(day.getTime().toString()),
|
||||
cells: [{
|
||||
|
@ -39,6 +45,9 @@ export default function useScheduleTable({
|
|||
id: slot.id,
|
||||
cells: [{
|
||||
id: 1,
|
||||
day, // TODO replace with slot time
|
||||
}, {
|
||||
id: 2,
|
||||
attributes: {
|
||||
className: 'schedule-'.concat(slot.event.language).concat(' ').concat(slot.event.track?.css_class),
|
||||
colSpan: 2,
|
||||
|
|
Loading…
Reference in New Issue