From 1fdfa5953b316dd613d0ecf62a4350cb2903baaa Mon Sep 17 00:00:00 2001 From: Thomas Hintz Date: Mon, 30 Jan 2023 16:20:12 -0800 Subject: [PATCH] Fixes. --- src/app/(main)/layout.jsx | 1 - src/app/(main)/podcast/[slug]/page.jsx | 4 ---- src/app/Player.jsx | 2 +- src/components/player/AudioPlayer.jsx | 2 +- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/app/(main)/layout.jsx b/src/app/(main)/layout.jsx index 1b91ae4..fab493a 100644 --- a/src/app/(main)/layout.jsx +++ b/src/app/(main)/layout.jsx @@ -1,7 +1,6 @@ import { Fragment, useId } from 'react' import Image from 'next/image' import Link from 'next/link' -import clsx from 'clsx' import NavBar from '@/components/NavBar' import posterImage from '@/images/poster.png' diff --git a/src/app/(main)/podcast/[slug]/page.jsx b/src/app/(main)/podcast/[slug]/page.jsx index d88a483..366cbcc 100644 --- a/src/app/(main)/podcast/[slug]/page.jsx +++ b/src/app/(main)/podcast/[slug]/page.jsx @@ -54,10 +54,6 @@ export default async function Page({ params }) { return ( <> - - {`${episode.title} - Their Side`} - -
diff --git a/src/app/Player.jsx b/src/app/Player.jsx index e76f9a3..f2a45c5 100644 --- a/src/app/Player.jsx +++ b/src/app/Player.jsx @@ -27,7 +27,7 @@ export default function Player({ episode, startTime, endTime, children }) { src: episode.audio.src, type: episode.audio.type, }, - link: `/${episode.id}`, + link: `/${episode.slug}`, }), [episode] ) diff --git a/src/components/player/AudioPlayer.jsx b/src/components/player/AudioPlayer.jsx index 2c8e6d4..a48e1c9 100644 --- a/src/components/player/AudioPlayer.jsx +++ b/src/components/player/AudioPlayer.jsx @@ -47,7 +47,7 @@ export function AudioPlayer() {