diff --git a/com.twin.app.shoptime/resources/de/strings.json b/com.twin.app.shoptime/resources/de/strings.json index 3ec46e0d..33fd426e 100644 --- a/com.twin.app.shoptime/resources/de/strings.json +++ b/com.twin.app.shoptime/resources/de/strings.json @@ -220,5 +220,6 @@ "Removed from My Favorites List": "Aus meiner Favoritenliste entfernt", "Watch Live show now?": "(need for transfer) Watch Live show now?", "If you do not wish to agree to these terms, please proceed to the LG Account.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the LG Account.", - "If you do not wish to agree to these terms, please proceed to the following link.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the following link." + "If you do not wish to agree to these terms, please proceed to the following link.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the following link.", + "Click the screen to see more products!": "Klicken Sie auf den Bildschirm, um weitere Produkte zu sehen!" } diff --git a/com.twin.app.shoptime/resources/en/strings.json b/com.twin.app.shoptime/resources/en/strings.json index 10f246a9..0278ca0e 100644 --- a/com.twin.app.shoptime/resources/en/strings.json +++ b/com.twin.app.shoptime/resources/en/strings.json @@ -220,5 +220,6 @@ "Removed from My Favorites List": "Removed from My Favorites List", "Watch Live show now?": "Watch Live show now?", "If you do not wish to agree to these terms, please proceed to the LG Account.": "If you do not wish to agree to these terms, please proceed to the LG Account.", - "If you do not wish to agree to these terms, please proceed to the following link.": "If you do not wish to agree to these terms, please proceed to the following link." + "If you do not wish to agree to these terms, please proceed to the following link.": "If you do not wish to agree to these terms, please proceed to the following link.", + "Click the screen to see more products!": "Click the screen to see more products!" } diff --git a/com.twin.app.shoptime/resources/gb/strings.json b/com.twin.app.shoptime/resources/gb/strings.json index 7aa7eabc..44a14c26 100644 --- a/com.twin.app.shoptime/resources/gb/strings.json +++ b/com.twin.app.shoptime/resources/gb/strings.json @@ -220,5 +220,6 @@ "Removed from My Favorites List": "Removed from My Favorites List", "Watch Live show now?": "Watch Live show now?", "If you do not wish to agree to these terms, please proceed to the LG Account.": "If you do not wish to agree to these terms, please proceed to the LG Account.", - "If you do not wish to agree to these terms, please proceed to the following link.": "If you do not wish to agree to these terms, please proceed to the following link." + "If you do not wish to agree to these terms, please proceed to the following link.": "If you do not wish to agree to these terms, please proceed to the following link.", + "Click the screen to see more products!": "Click the screen to see more products!" } diff --git a/com.twin.app.shoptime/resources/ru/strings.json b/com.twin.app.shoptime/resources/ru/strings.json index 2619c7ba..0e1e5541 100644 --- a/com.twin.app.shoptime/resources/ru/strings.json +++ b/com.twin.app.shoptime/resources/ru/strings.json @@ -220,5 +220,6 @@ "Removed from My Favorites List": "Удалено из Списка Избранного", "Watch Live show now?": "(need for transfer) Watch Live show now?", "If you do not wish to agree to these terms, please proceed to the LG Account.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the LG Account.", - "If you do not wish to agree to these terms, please proceed to the following link.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the following link." + "If you do not wish to agree to these terms, please proceed to the following link.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the following link.", + "Click the screen to see more products!": "Нажмите на экран, чтобы увидеть больше товаров!" } diff --git a/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx b/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx index fd5abf9c..b3e488d5 100644 --- a/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx +++ b/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx @@ -4,47 +4,32 @@ import React, { useMemo, useRef, useState, -} from 'react'; +} from "react"; -import classNames from 'classnames'; -import { - useDispatch, - useSelector, -} from 'react-redux'; +import classNames from "classnames"; +import { useDispatch, useSelector } from "react-redux"; -import SpotlightContainerDecorator - from '@enact/spotlight/SpotlightContainerDecorator'; -import Spottable from '@enact/spotlight/Spottable'; +import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator"; +import Spottable from "@enact/spotlight/Spottable"; -import btnPlay from '../../../../assets/images/btn/btn-play-thumb-nor.png'; -import defaultLogoImg - from '../../../../assets/images/ic-tab-partners-default@3x.png'; -import emptyHorImage - from '../../../../assets/images/img-home-banner-empty-hor.png'; -import emptyVerImage - from '../../../../assets/images/img-home-banner-empty-ver.png'; -import defaultImageItem - from '../../../../assets/images/img-thumb-empty-product@3x.png'; -import liveShow from '../../../../assets/images/tag-liveshow.png'; +import btnPlay from "../../../../assets/images/btn/btn-play-thumb-nor.png"; +import defaultLogoImg from "../../../../assets/images/ic-tab-partners-default@3x.png"; +import emptyHorImage from "../../../../assets/images/img-home-banner-empty-hor.png"; +import emptyVerImage from "../../../../assets/images/img-home-banner-empty-ver.png"; +import defaultImageItem from "../../../../assets/images/img-thumb-empty-product@3x.png"; +import liveShow from "../../../../assets/images/tag-liveshow.png"; //import { sendBroadCast } from "../../../actions/commonActions"; -import { pushPanel } from '../../../actions/panelActions'; +import { pushPanel } from "../../../actions/panelActions"; import { finishVideoPreview, startVideoPlayer, -} from '../../../actions/playActions'; -import CustomImage from '../../../components/CustomImage/CustomImage'; -import useLogService from '../../../hooks/useLogService'; -import usePriceInfo from '../../../hooks/usePriceInfo'; -import { - LOG_MENU, - LOG_TP_NO, - panel_names, -} from '../../../utils/Config'; -import { - $L, - formatGMTString, -} from '../../../utils/helperMethods'; -import css from './RandomUnit.module.less'; +} from "../../../actions/playActions"; +import CustomImage from "../../../components/CustomImage/CustomImage"; +import useLogService from "../../../hooks/useLogService"; +import usePriceInfo from "../../../hooks/usePriceInfo"; +import { LOG_MENU, LOG_TP_NO, panel_names } from "../../../utils/Config"; +import { $L, formatGMTString } from "../../../utils/helperMethods"; +import css from "./RandomUnit.module.less"; const SpottableComponent = Spottable("div"); @@ -343,37 +328,37 @@ export default function RandomUnit({ useEffect(() => { if (isFocused && !videoError) { - timerRef.current = setTimeout( - () => - dispatch( - startVideoPlayer({ - showUrl: randomData.showUrl, - patnrId: randomData.patnrId, - showId: randomData.showId, - shptmBanrTpNm: randomData.showId - ? randomData.shptmBanrTpNm - : "MEDIA", - lgCatCd: randomData.lgCatCd, - chanId: randomData.brdcChnlId, - modal: true, - modalContainerId: spotlightId, - modalClassName: css.videoModal, - }) - ), - 1000 - ); + timerRef.current = setTimeout( + () => + dispatch( + startVideoPlayer({ + showUrl: randomData.showUrl, + patnrId: randomData.patnrId, + showId: randomData.showId, + shptmBanrTpNm: randomData.showId + ? randomData.shptmBanrTpNm + : "MEDIA", + lgCatCd: randomData.lgCatCd, + chanId: randomData.brdcChnlId, + modal: true, + modalContainerId: spotlightId, + modalClassName: css.videoModal, + }) + ), + 1000 + ); } - if(!isFocused){ + if (!isFocused) { setVideoError(false); dispatch(finishVideoPreview()); } return () => { clearTimeout(timerRef.current); - } + }; }, [isFocused]); useEffect(() => { - if (isFocused && broadcast?.type === "videoError"){ + if (isFocused && broadcast?.type === "videoError") { clearTimeout(timerRef.current); setVideoError(true); dispatch(finishVideoPreview()); @@ -459,7 +444,7 @@ export default function RandomUnit({ /> )}
- Click the screen to see more products! + {$L("Click the screen to see more products!")}