|
|
@@ -26,7 +26,7 @@ import BannerPagination from "@components/AutoBanner/BannerPagination";
|
|
|
import {NavLink, useNavigate} from "react-router-dom";
|
|
|
import styles from './styles.module.scss';
|
|
|
import {ROUTE_PATH} from "@constants/routes";
|
|
|
-
|
|
|
+import Imgix from "@components/Imgix";
|
|
|
|
|
|
const AutoBanner = ({data,perview=3,spaceBetween=15,delay=3000,speed=1000}) => {
|
|
|
const [swiper, setSwiper] = useState(null);
|
|
|
@@ -92,8 +92,9 @@ const AutoBanner = ({data,perview=3,spaceBetween=15,delay=3000,speed=1000}) => {
|
|
|
<button key={iIndex} className="img-box w-100" onClick={()=>{
|
|
|
onClickNav(item);
|
|
|
}}>
|
|
|
- <LazyImage style={{borderRadius:"var(--border-radius)"}} className="img-box-content" src={item.img} alt={item.alt}>
|
|
|
- </LazyImage>
|
|
|
+ {/*<LazyImage style={{borderRadius:"var(--border-radius)"}} className="img-box-content" src={item.img} alt={item.alt}>*/}
|
|
|
+ {/*</LazyImage>*/}
|
|
|
+ <Imgix className="lazyload img-box-content" style={{borderRadius:"var(--border-radius)"}} src={item.img} alt={item.alt} width={675}></Imgix>
|
|
|
</button>
|
|
|
))
|
|
|
}
|