From e28d0c83eb9535ac4e20e8f85510a3cfb382e167 Mon Sep 17 00:00:00 2001 From: Kakabay Date: Thu, 2 Mar 2023 12:46:17 +0500 Subject: [PATCH] Video wroking --- src/pages/Home.jsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/pages/Home.jsx b/src/pages/Home.jsx index c111195..ec3169a 100644 --- a/src/pages/Home.jsx +++ b/src/pages/Home.jsx @@ -20,9 +20,9 @@ const Home = ({ lang, setPostId }) => { useEffect(() => { // Video fetch - // const VideoApi = new Api('https://tmex.gov.tm:8765/api/video', videoData, setVideoData).get({ - // 'X-Localization': lang, - // }); + const VideoApi = new Api('https://tmex.gov.tm:8765/api/video', videoData, setVideoData).get({ + 'X-Localization': lang, + }); // News fetch const NewsApi = new Api('https://tmex.gov.tm:8765/api/news', newsData, setNewsData).get({ @@ -123,8 +123,12 @@ const Home = ({ lang, setPostId }) => { ) : null}
- {/* {videoData ? : null} */} - + {videoData ? : null} + {/* */}