|
|
@ -3,12 +3,12 @@ import { connect } from "react-redux"; |
|
|
|
import Checkbox from "../../../components/Checkbox"; |
|
|
|
import Checkbox from "../../../components/Checkbox"; |
|
|
|
import VerticalExpandableProductFilter from "../../../components/VerticalExpandableProductFilter"; |
|
|
|
import VerticalExpandableProductFilter from "../../../components/VerticalExpandableProductFilter"; |
|
|
|
|
|
|
|
|
|
|
|
export const Sidebar = ({}) => { |
|
|
|
export const Sidebar = ({onChange}) => { |
|
|
|
|
|
|
|
|
|
|
|
const filteronGrade = [ |
|
|
|
const filteronGrade = [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
id:0, |
|
|
|
id:0, |
|
|
|
name: "پایه اول", |
|
|
|
name: "اول", |
|
|
|
expaneded: false, |
|
|
|
expaneded: false, |
|
|
|
subList: [{ |
|
|
|
subList: [{ |
|
|
|
id:1, |
|
|
|
id:1, |
|
|
@ -17,7 +17,7 @@ export const Sidebar = ({}) => { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id:1, |
|
|
|
id:1, |
|
|
|
name: "پایه دوم", |
|
|
|
name: "دوم", |
|
|
|
expaneded: false, |
|
|
|
expaneded: false, |
|
|
|
subList: [{ |
|
|
|
subList: [{ |
|
|
|
id:1, |
|
|
|
id:1, |
|
|
@ -26,7 +26,7 @@ export const Sidebar = ({}) => { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id:2, |
|
|
|
id:2, |
|
|
|
name: "پایه سوم", |
|
|
|
name: "سوم", |
|
|
|
expaneded: false, |
|
|
|
expaneded: false, |
|
|
|
subList: [], |
|
|
|
subList: [], |
|
|
|
}, |
|
|
|
}, |
|
|
@ -59,7 +59,7 @@ export const Sidebar = ({}) => { |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
return <div className="flex flex-col w-1/4 p-4"> |
|
|
|
return <div className="flex flex-col w-1/4 p-4"> |
|
|
|
<VerticalExpandableProductFilter name="grades" btnTitle='مشاهده همه ی کالاهای آموزشی' list={filteronGrade} title="پایه تحصیلی" searchAble={true}/> |
|
|
|
<VerticalExpandableProductFilter onChange={onChange} name="grade" preName='پایه' btnTitle='مشاهده همه ی کالاهای آموزشی' list={filteronGrade} title="پایه تحصیلی" searchAble={true}/> |
|
|
|
<VerticalExpandableProductFilter name="category" list={categories} title="دسته بندی" searchAble={false}/> |
|
|
|
<VerticalExpandableProductFilter name="category" list={categories} title="دسته بندی" searchAble={false}/> |
|
|
|
|
|
|
|
|
|
|
|
</div>; |
|
|
|
</div>; |
|
|
|