Implement EventStream for live schedule updates
This commit is contained in:
parent
e5aac858e4
commit
cdad188233
7 changed files with 172 additions and 36 deletions
12
ui/locations.tsx
Normal file
12
ui/locations.tsx
Normal file
|
@ -0,0 +1,12 @@
|
|||
"use client";
|
||||
import { useSchedule } from "@/app/schedule/context";
|
||||
|
||||
export function Locations() {
|
||||
const schedule = useSchedule();
|
||||
return <ul>
|
||||
{schedule!.locations.map(location => <li key={location.id}>
|
||||
<h3>{location.name}</h3>
|
||||
{location.description ?? "No description provided"}
|
||||
</li>)}
|
||||
</ul>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue