mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 19:02:15 +00:00
refactor: used metaItem.name instead of passing a prop
This commit is contained in:
parent
35a6843e26
commit
83ac7c6480
2 changed files with 2 additions and 3 deletions
|
|
@ -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, title }) => {
|
||||
const NextVideoPopup = ({ className, metaItem, nextVideo, onDismiss, onNextVideoRequested }) => {
|
||||
const watchNowButtonRef = React.useRef(null);
|
||||
const [animationEnded, setAnimationEnded] = React.useState(false);
|
||||
const videoName = React.useMemo(() => {
|
||||
|
|
@ -62,7 +62,7 @@ const NextVideoPopup = ({ className, metaItem, nextVideo, onDismiss, onNextVideo
|
|||
{
|
||||
typeof videoName === 'string' ?
|
||||
<div className={styles['name']}>
|
||||
<span className={styles['label']}>Next on</span> { title?.split('-')[0]?.trim() }
|
||||
<span className={styles['label']}>Next on</span> { metaItem.name }
|
||||
</div>
|
||||
:
|
||||
null
|
||||
|
|
|
|||
|
|
@ -720,7 +720,6 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
nextVideo={player.nextVideo}
|
||||
onDismiss={onDismissNextVideoPopup}
|
||||
onNextVideoRequested={onNextVideoRequested}
|
||||
title={player?.title}
|
||||
/>
|
||||
:
|
||||
null
|
||||
|
|
|
|||
Loading…
Reference in a new issue