|
|
@ -15,17 +15,9 @@ export const Main = ({ isMobile, |
|
|
|
selectedGrade, |
|
|
|
selectedGrade, |
|
|
|
gradeFilterBooks, |
|
|
|
gradeFilterBooks, |
|
|
|
setHeaderOptions, |
|
|
|
setHeaderOptions, |
|
|
|
headerOptions, }) => { |
|
|
|
headerOptions, |
|
|
|
const [filter, setFilter] = useState({ |
|
|
|
filter }) => { |
|
|
|
search: "", |
|
|
|
|
|
|
|
grade: "", |
|
|
|
|
|
|
|
productsType: "کتاب", |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
const [desktopContentTransform, setDesktopContentTransform] = useState(false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const onChange = (name, value) => { |
|
|
|
|
|
|
|
setFilter({ ...filter, [name]: value }); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const filteringNavItems = [ |
|
|
|
const filteringNavItems = [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -60,7 +52,7 @@ export const Main = ({ isMobile, |
|
|
|
} |
|
|
|
} |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div className="w-full flex flex-row flex-wrap mt-0 border-t-2 border-solid border-gray-100 overflow-y-hidden justify-between"> |
|
|
|
<div className="w-full flex flex-row flex-wrap mt-0 border-t-2 border-solid border-gray-100 overflow-y-hidden justify-between"> |
|
|
|
{selectedGrade |
|
|
|
{selectedGrade |
|
|
|
? gradeFilterBooks?.map((product, index) => ( |
|
|
|
? gradeFilterBooks?.map((product, index) => ( |
|
|
@ -70,6 +62,15 @@ export const Main = ({ isMobile, |
|
|
|
product={product} |
|
|
|
product={product} |
|
|
|
index={Number(index)} |
|
|
|
index={Number(index)} |
|
|
|
grades={grades} |
|
|
|
grades={grades} |
|
|
|
|
|
|
|
roductName={`کتاب ${product?.name}`} |
|
|
|
|
|
|
|
productCat={`پایه ${grades[product?.gradeId]}`} |
|
|
|
|
|
|
|
productPrice={100000} |
|
|
|
|
|
|
|
productImg={"https://dnvn.ir/api/v1/file/" + product?.fileIds} |
|
|
|
|
|
|
|
numberOfRegards={160} |
|
|
|
|
|
|
|
productTitleColor='text-blue5F' |
|
|
|
|
|
|
|
productCatTextColor='text-blueC0' |
|
|
|
|
|
|
|
productHolderBorder='' |
|
|
|
|
|
|
|
productHolderHoverBorder='shadow-md' |
|
|
|
/> |
|
|
|
/> |
|
|
|
)) |
|
|
|
)) |
|
|
|
: books?.map((product, index) => ( |
|
|
|
: books?.map((product, index) => ( |
|
|
|