aside lazy loading added

This commit is contained in:
Kakabay 2023-01-31 15:57:37 +05:00
parent 01d0fd35ad
commit b7d2de2166
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
// Modules
import { Link } from 'react-router-dom';
import { LazyLoadImage } from 'react-lazy-load-image-component';
// Images
import { ReactComponent as ArrRight } from '../../assets/icons/arrow-right.svg';
// Components
@ -19,7 +20,7 @@ const AsideNews = ({ title, category, date, img, link }: Props) => {
<div className="aside-news">
<div className="aside-news-wrapper">
<div className="aside-news-image">
<img src={img} alt="img" />
<LazyLoadImage src={img} alt="image" useIntersectionObserver effect="blur" />
</div>
<div className="aside-news-info">
<div className="aside-news-info-inner">