diff --git a/packages/berlin/src/components/cycles/Cycles.tsx b/packages/berlin/src/components/cycles/Cycles.tsx index a8b138b1..926b5f9f 100644 --- a/packages/berlin/src/components/cycles/Cycles.tsx +++ b/packages/berlin/src/components/cycles/Cycles.tsx @@ -25,7 +25,7 @@ function Cycles({ cycles, errorMessage, eventId }: CyclesProps) { {cycles?.length ? ( cycles.map((cycle) => (
handleCycleClick(cycle.id)} > diff --git a/packages/berlin/src/components/events/Events.tsx b/packages/berlin/src/components/events/Events.tsx index e95c794d..1e11699b 100644 --- a/packages/berlin/src/components/events/Events.tsx +++ b/packages/berlin/src/components/events/Events.tsx @@ -1,11 +1,12 @@ -import Markdown from 'react-markdown'; +// React and third-party libraries +import { useNavigate } from 'react-router-dom'; +// API import { GetEventResponse } from 'api'; +// Components import { Body } from '../typography/Body.styled'; import { Subtitle } from '../typography/Subtitle.styled'; -import Link from '../link'; -import { useNavigate } from 'react-router-dom'; type EventsProps = { events: GetEventResponse[] | undefined; @@ -29,20 +30,6 @@ export default function Events({ events, errorMessage }: EventsProps) { >
{event.name} - {event.description && ( - {props.children}, - p: ({ node, ...props }) => ( - - {props.children} - - ), - }} - > - {event.description} - - )}
{event.imageUrl && (
diff --git a/packages/berlin/src/components/header/Header.tsx b/packages/berlin/src/components/header/Header.tsx index bd2f3b63..d7e4b6fe 100644 --- a/packages/berlin/src/components/header/Header.tsx +++ b/packages/berlin/src/components/header/Header.tsx @@ -121,7 +121,7 @@ const HeaderLinks = ({ user }: { user: GetUserResponse }) => { const eventBaseLinks = [ { - title: 'My Proposals', + title: 'Registration', link: `/events/${eventId}/register`, }, { diff --git a/packages/berlin/src/pages/Event.tsx b/packages/berlin/src/pages/Event.tsx index 0179b01c..1e3300f4 100644 --- a/packages/berlin/src/pages/Event.tsx +++ b/packages/berlin/src/pages/Event.tsx @@ -56,18 +56,31 @@ function Event() { <> - -
- {event?.name} - {event?.description && ( - {props.children}, - p: ({ node, ...props }) => {props.children}, - }} - > - {event.description} - +
+
+ + {event?.name} + {event?.description && ( +
+ {props.children}, + p: ({ node, ...props }) => {props.children}, + }} + > + {event.description} + +
+ )} +
+ {event?.imageUrl && ( +
+ {`${event.name} +
)}
diff --git a/packages/berlin/src/pages/Events.tsx b/packages/berlin/src/pages/Events.tsx index f796d4d6..01923e4f 100644 --- a/packages/berlin/src/pages/Events.tsx +++ b/packages/berlin/src/pages/Events.tsx @@ -41,7 +41,7 @@ function Events() { Events
-
+