mirror of
https://github.com/ershisan99/podcaster.git
synced 2025-12-17 20:59:27 +00:00
chore: move episode to components, since it's not exactly a page, just a part of one
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { useParams } from "react-router-dom";
|
import { useParams } from "react-router-dom";
|
||||||
import { usePodcastQuery } from "../services/podcasts/podcast.hooks";
|
import { usePodcastQuery } from "../../services/podcasts/podcast.hooks";
|
||||||
import { useTitle } from "../hooks/use-title";
|
import { useTitle } from "../../hooks/use-title";
|
||||||
|
|
||||||
export function Episode() {
|
export function Episode() {
|
||||||
const { podcastId, episodeId } = useParams<{
|
const { podcastId, episodeId } = useParams<{
|
||||||
1
src/components/episode/index.ts
Normal file
1
src/components/episode/index.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export * from "./episode";
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { createBrowserRouter, RouterProvider } from "react-router-dom";
|
import { createBrowserRouter, RouterProvider } from "react-router-dom";
|
||||||
import { Home } from "./pages/home";
|
import { Home } from "./pages/home";
|
||||||
import { Podcast } from "./pages/podcast";
|
import { Podcast } from "./pages/podcast";
|
||||||
import { Episode } from "./pages/episode";
|
import { Episode } from "./components/episode";
|
||||||
import { PodcastEpisodesList } from "./components/podcast/podcast-episodes-list";
|
import { PodcastEpisodesList } from "./components/podcast/podcast-episodes-list";
|
||||||
import { Layout } from "./components/ui/layout/layout";
|
import { Layout } from "./components/ui/layout/layout";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user