This commit is contained in:
2022-12-18 14:51:47 +00:00
parent 968ea78077
commit e6ef1a5bc9
35 changed files with 10237 additions and 0 deletions

23
src/pages/EventPage.js Normal file
View File

@ -0,0 +1,23 @@
import { useEffect } from "react";
import { useParams } from "react-router-dom";
import Note from "../element/Note";
import useThreadFeed from "./feed/ThreadFeed";
export default function EventPage() {
const params = useParams();
const id = params.id;
const { note, notes } = useThreadFeed(id);
if(note) {
return (
<>
{notes?.map(n => <Note key={n.id} data={n}/>)}
<Note data={note}/>
</>
)
}
return (
<>Loading {id.substring(0, 8)}...</>
);
}