From 35a6843e26da4fad4a65c3d73e1781775c9e11d6 Mon Sep 17 00:00:00 2001
From: kKaskak <117831817+kKaskak@users.noreply.github.com>
Date: Mon, 6 Nov 2023 14:40:47 +0200
Subject: [PATCH 1/4] feature: implemented the new pop-up design
---
.../Player/NextVideoPopup/NextVideoPopup.js | 13 ++++++-
src/routes/Player/NextVideoPopup/styles.less | 39 ++++++++++++++-----
src/routes/Player/Player.js | 1 +
3 files changed, 42 insertions(+), 11 deletions(-)
diff --git a/src/routes/Player/NextVideoPopup/NextVideoPopup.js b/src/routes/Player/NextVideoPopup/NextVideoPopup.js
index bf4c7abda..c8f8474a8 100644
--- a/src/routes/Player/NextVideoPopup/NextVideoPopup.js
+++ b/src/routes/Player/NextVideoPopup/NextVideoPopup.js
@@ -7,7 +7,7 @@ const { default: Icon } = require('@stremio/stremio-icons/react');
const { Image, Button, CONSTANTS } = require('stremio/common');
const styles = require('./styles');
-const NextVideoPopup = ({ className, metaItem, nextVideo, onDismiss, onNextVideoRequested }) => {
+const NextVideoPopup = ({ className, metaItem, nextVideo, onDismiss, onNextVideoRequested, title }) => {
const watchNowButtonRef = React.useRef(null);
const [animationEnded, setAnimationEnded] = React.useState(false);
const videoName = React.useMemo(() => {
@@ -62,6 +62,14 @@ const NextVideoPopup = ({ className, metaItem, nextVideo, onDismiss, onNextVideo
{
typeof videoName === 'string' ?
+ Next on { title?.split('-')[0]?.trim() }
+
+ :
+ null
+ }
+ {
+ typeof videoName === 'string' ?
+
{ videoName }
:
@@ -77,7 +85,7 @@ const NextVideoPopup = ({ className, metaItem, nextVideo, onDismiss, onNextVideo
}
-