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