diff --git a/apps/frontend/app/routes/_dashboard._index.tsx b/apps/frontend/app/routes/_dashboard._index.tsx index fbe35af3f9..7366f29cad 100644 --- a/apps/frontend/app/routes/_dashboard._index.tsx +++ b/apps/frontend/app/routes/_dashboard._index.tsx @@ -247,7 +247,7 @@ const UpComingMedia = ({ um }: { um: CalendarEventPartFragment }) => { return ( - {props.data.events.map((evt) => ( - + {props.data.events.map((calEvent) => ( + + `S${calEvent.showExtraInformation?.season}-E${calEvent.showExtraInformation?.episode}`, + ) + .with( + MediaLot.Podcast, + () => `EP-${calEvent.podcastExtraInformation?.episode}`, + ) + .otherwise(() => "")}`} + /> ))} ); }; - -const DisplayCalendarEvent = ({ - calEvent, -}: { calEvent: CalendarEventPartFragment }) => { - return ( - - `S${calEvent.showExtraInformation?.season}-E${calEvent.showExtraInformation?.episode}`, - ) - .with( - MediaLot.Podcast, - () => `EP-${calEvent.podcastExtraInformation?.episode}`, - ) - .otherwise(() => "")}`} - /> - ); -}; diff --git a/apps/frontend/app/routes/_dashboard.settings.preferences.tsx b/apps/frontend/app/routes/_dashboard.settings.preferences.tsx index 9c037d2f2b..f00ed34eca 100644 --- a/apps/frontend/app/routes/_dashboard.settings.preferences.tsx +++ b/apps/frontend/app/routes/_dashboard.settings.preferences.tsx @@ -282,6 +282,7 @@ export default function Page() { "disableReviews", "disableWatchProviders", "persistQueries", + "showSpoilersInCalendar", ] as const ).map((name) => ( "Persist queries in the URL", + () => + "Persist queries in the URL so that you look at the same data next time you visit it", + ) + .with( + "showSpoilersInCalendar", + () => + "Show episode title in calendar and upcoming section which might contain spoilers", ) .exhaustive()} /> ))} -