|
|
|
@ -15,17 +15,9 @@ export const Main = ({ isMobile, |
|
|
|
|
selectedGrade, |
|
|
|
|
gradeFilterBooks, |
|
|
|
|
setHeaderOptions, |
|
|
|
|
headerOptions, }) => { |
|
|
|
|
const [filter, setFilter] = useState({ |
|
|
|
|
search: "", |
|
|
|
|
grade: "", |
|
|
|
|
productsType: "کتاب", |
|
|
|
|
}); |
|
|
|
|
const [desktopContentTransform, setDesktopContentTransform] = useState(false); |
|
|
|
|
headerOptions, |
|
|
|
|
filter }) => { |
|
|
|
|
|
|
|
|
|
const onChange = (name, value) => { |
|
|
|
|
setFilter({ ...filter, [name]: value }); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const filteringNavItems = [ |
|
|
|
|
{ |
|
|
|
@ -60,7 +52,7 @@ export const Main = ({ isMobile, |
|
|
|
|
} |
|
|
|
|
</ul> |
|
|
|
|
</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"> |
|
|
|
|
{selectedGrade |
|
|
|
|
? gradeFilterBooks?.map((product, index) => ( |
|
|
|
@ -70,6 +62,15 @@ export const Main = ({ isMobile, |
|
|
|
|
product={product} |
|
|
|
|
index={Number(index)} |
|
|
|
|
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) => ( |
|
|
|
|