Blog data
This commit is contained in:
@@ -4,7 +4,9 @@ import DataIteration from "../Helpers/DataIteration";
|
||||
import SearchCom from "../Helpers/SearchCom";
|
||||
import BlogCardStyle from "../Cards/BlogCardStyle";
|
||||
|
||||
export default function BlogTab({ className, products }) {
|
||||
export default function BlogTab({ className, products, resources }) {
|
||||
// console.log('In blog data -> ',resources);
|
||||
//debugger;
|
||||
return (
|
||||
<>
|
||||
<div className={`onsale-tab-wrapper w-full ${className || ""}`}>
|
||||
@@ -42,12 +44,12 @@ export default function BlogTab({ className, products }) {
|
||||
<div className="content-section w-full-width">
|
||||
<div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]">
|
||||
<DataIteration
|
||||
datas={products}
|
||||
datas={resources?.blog}
|
||||
startLength={0}
|
||||
endLength={products.length}
|
||||
endLength={resources.blog!=null?resources.blog.length:0}
|
||||
>
|
||||
{({ datas }) => (
|
||||
<BlogCardStyle key={datas.id} datas={datas} />
|
||||
<BlogCardStyle key={datas.id} datas={datas} />
|
||||
)}
|
||||
</DataIteration>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user