Compare commits
4 Commits
6473023c00
...
ab28f5f03b
| Author | SHA1 | Date |
|---|---|---|
|
|
ab28f5f03b | |
|
|
e28d0c83eb | |
|
|
52be43193b | |
|
|
8fb1b061d5 |
File diff suppressed because one or more lines are too long
|
|
@ -5,7 +5,7 @@
|
|||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Exchange</title>
|
||||
<script type="module" crossorigin src="/assets/index.142a3e93.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index.b192f733.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index.9661e2a1.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ const VideoPlayer = ({ videoUrl }) => {
|
|||
<div className="video-player">
|
||||
<ReactPlayer
|
||||
// url={hosting + videoUrl}
|
||||
url={videoUrl}
|
||||
url={`${videoUrl}`}
|
||||
controls
|
||||
// playIcon={videoUrl.length > 0 ? <PlayIcon /> : undefined}
|
||||
volume={1}
|
||||
light={true}
|
||||
light={false}
|
||||
height={'100%'}
|
||||
width={'100%'}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
||||
<div className="about-right">
|
||||
{/* {videoData ? <VideoPlayer videoUrl={videoData.data.video} /> : null} */}
|
||||
<VideoPlayer videoUrl={'https://www.exchange.gov.tm/page/normative-base?lang=ru'} />
|
||||
{videoData ? <VideoPlayer videoUrl={videoData.data.video} /> : null}
|
||||
{/* <VideoPlayer
|
||||
videoUrl={
|
||||
'https://tmex.gov.tm:8765/uploads/videos/b9ae49ed43c7ca9483eddc0d6c43ecb5.mp4'
|
||||
}
|
||||
/> */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
import React from 'react';
|
||||
import { useState, useEffect } from 'react';
|
||||
import { Api } from '../helpers/api';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
// Components
|
||||
import Tab from '../components/Tab';
|
||||
import SectionTitle from '../components/SectionTitle';
|
||||
|
|
@ -82,6 +83,7 @@ const Tarif = ({ lang }) => {
|
|||
? tarifData.data.map((tarif) => {
|
||||
return tarif.type === 'resident' && tarif.title != '-' ? (
|
||||
<TarifService
|
||||
key={uuidv4()}
|
||||
title={tarif.title}
|
||||
price={tarif.prices.map((tarifPrice) => tarifPrice.price + ' ')}
|
||||
/>
|
||||
|
|
@ -96,6 +98,7 @@ const Tarif = ({ lang }) => {
|
|||
? tarifData.data.map((tarif) => {
|
||||
return tarif.type === 'non_resident' && tarif.title != '-' ? (
|
||||
<TarifService
|
||||
key={uuidv4()}
|
||||
title={tarif.title}
|
||||
price={tarif.prices.map((tarifPrice) => tarifPrice.price + ' ')}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue