|
|
@ -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 = [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -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) => ( |
|
|
|