From 92238b4380cc8c473958d4415b09c6cd61e2136a Mon Sep 17 00:00:00 2001 From: inmake Date: Fri, 3 May 2024 12:12:20 +0500 Subject: [PATCH] upd --- src/app/main_video/page.tsx | 17 +++++++++++++++++ src/app/stream/page.tsx | 17 +++++++++++++++++ src/components/Stream/Stream.tsx | 2 +- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 src/app/main_video/page.tsx create mode 100644 src/app/stream/page.tsx diff --git a/src/app/main_video/page.tsx b/src/app/main_video/page.tsx new file mode 100644 index 0000000..8e78480 --- /dev/null +++ b/src/app/main_video/page.tsx @@ -0,0 +1,17 @@ +/* eslint-disable react-hooks/exhaustive-deps */ +"use client"; + +import { useRouter } from "next/navigation"; +import { useEffect } from "react"; + +function MainVideoPage() { + const router = useRouter(); + + useEffect(() => { + router.push("/"); + }, []); + + return <>; +} + +export default MainVideoPage; diff --git a/src/app/stream/page.tsx b/src/app/stream/page.tsx new file mode 100644 index 0000000..88d0d8c --- /dev/null +++ b/src/app/stream/page.tsx @@ -0,0 +1,17 @@ +/* eslint-disable react-hooks/exhaustive-deps */ +"use client"; + +import { useRouter } from "next/navigation"; +import { useEffect } from "react"; + +function StreamPage() { + const router = useRouter(); + + useEffect(() => { + router.push("/#stream"); + }, []); + + return <>; +} + +export default StreamPage; diff --git a/src/components/Stream/Stream.tsx b/src/components/Stream/Stream.tsx index 1cc9d6e..15ab16d 100644 --- a/src/components/Stream/Stream.tsx +++ b/src/components/Stream/Stream.tsx @@ -5,7 +5,7 @@ import StreamButton from "./StreamButton"; const Stream = () => { return ( -
+