From 51ecd0dd5aea4811fc8caa35b2760260292bc05e Mon Sep 17 00:00:00 2001 From: pabloVoorvaart Date: Tue, 27 Feb 2024 22:42:59 -0300 Subject: [PATCH] markdown changes --- .../[event]/components/EventHomeComponent.tsx | 7 +- .../[event]/stage/[stage]/page.tsx | 4 +- .../components/navigation/eventAccordion.tsx | 8 +- .../app/components/misc/MarkdownDisplay.tsx | 13 + .../sessions/InfoBoxDescription.tsx | 3 +- .../components/sessions/SessionInfoBox.tsx | 1 + yarn.lock | 38834 +++++++++------- 7 files changed, 22472 insertions(+), 16398 deletions(-) create mode 100644 packages/app/components/misc/MarkdownDisplay.tsx diff --git a/packages/app/app/[organization]/[event]/components/EventHomeComponent.tsx b/packages/app/app/[organization]/[event]/components/EventHomeComponent.tsx index f9bbae2bc..a73c8959c 100644 --- a/packages/app/app/[organization]/[event]/components/EventHomeComponent.tsx +++ b/packages/app/app/[organization]/[event]/components/EventHomeComponent.tsx @@ -23,11 +23,12 @@ import { isSameDate, } from '@/lib/utils/time' import Markdown from 'react-markdown' -import remarkGfm from 'remark-gfm' import { Suspense } from 'react' import banner from '@/public/streameth_twitter_banner.jpeg' import { IExtendedEvent } from '@/lib/types' import SignUp from '@/components/plugins/SignUp' +import MDEditor from '@uiw/react-md-editor' +import MarkdownDisplay from '@/components/misc/MarkdownDisplay' export default function EventHomeComponent({ event, stages, @@ -109,9 +110,7 @@ export default function EventHomeComponent({ - - {event.description} - + Livestreams diff --git a/packages/app/app/[organization]/[event]/stage/[stage]/page.tsx b/packages/app/app/[organization]/[event]/stage/[stage]/page.tsx index 3d50bf6ab..9cb6ad62b 100644 --- a/packages/app/app/[organization]/[event]/stage/[stage]/page.tsx +++ b/packages/app/app/[organization]/[event]/stage/[stage]/page.tsx @@ -10,7 +10,6 @@ import { notFound } from 'next/navigation' import { generalMetadata, stageMetadata } from '@/lib/utils/metadata' import { Metadata } from 'next' import { fetchChat } from '@/lib/services/chatService' - import { Livepeer } from 'livepeer' import { buildPlaybackUrl } from '@/lib/utils/utils' export default async function Stage({ params }: EventPageProps) { @@ -48,10 +47,9 @@ export default async function Stage({ params }: EventPageProps) { return s.start < Date.now() && s.end > Date.now() }) - console.log('currentSession', currentSession) return (
-
+
{ Description -