mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 10:23:24 +00:00
refactor: move video player routes onto their own dir
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
|||||||
} from "@movie-web/provider-utils";
|
} from "@movie-web/provider-utils";
|
||||||
import { fetchMediaDetails } from "@movie-web/tmdb";
|
import { fetchMediaDetails } from "@movie-web/tmdb";
|
||||||
|
|
||||||
import type { VideoPlayerData } from "./videoPlayer";
|
import type { VideoPlayerData } from ".";
|
||||||
import type { ItemData } from "~/components/item/item";
|
import type { ItemData } from "~/components/item/item";
|
||||||
import ScreenLayout from "~/components/layout/ScreenLayout";
|
import ScreenLayout from "~/components/layout/ScreenLayout";
|
||||||
|
|
@@ -17,7 +17,7 @@ export default function Item({ data }: { data: ItemData }) {
|
|||||||
|
|
||||||
const handlePress = () => {
|
const handlePress = () => {
|
||||||
router.push({
|
router.push({
|
||||||
pathname: "/loading",
|
pathname: "/videoPlayer/loading",
|
||||||
params: { data: JSON.stringify(data) },
|
params: { data: JSON.stringify(data) },
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user