Merge branch 'main' of https://github.com/VividTruthKeeper/hhm-client
This commit is contained in:
commit
3a6d92cff2
|
|
@ -23,7 +23,7 @@ const AsideNews = ({ title, date, img, category, id, video }: Props) => {
|
|||
<Link to={`/news/${id}`} className="aside-news">
|
||||
<div className="aside-news-wrapper">
|
||||
<div className="aside-news-image">
|
||||
{video && video.length > 0 ? (
|
||||
{video && video.length > 53 ? (
|
||||
<ReactPlayer
|
||||
url={video}
|
||||
controls
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ interface IProps {
|
|||
const NewsArticleImg = ({ img, video }: IProps) => {
|
||||
return (
|
||||
<div className={"news-article-image"}>
|
||||
{video && video.length > 0 ? (
|
||||
{video && video.length > 53 ? (
|
||||
<ReactPlayer url={video} controls width="100%" height="100%" />
|
||||
) : (
|
||||
<LazyLoadImage
|
||||
|
|
|
|||
Loading…
Reference in New Issue