|
|
|
@ -10,6 +10,7 @@ import BreadCrumbs from "../../components/BreadCrumbs"; |
|
|
|
|
import Loader from "../../components/Loader"; |
|
|
|
|
import Vocal from "../../components/Vocal/Vocal"; |
|
|
|
|
import { info } from "console"; |
|
|
|
|
import _ from "lodash"; |
|
|
|
|
|
|
|
|
|
function Courses({ |
|
|
|
|
getList, |
|
|
|
@ -39,10 +40,16 @@ function Courses({ |
|
|
|
|
setVocal(false); |
|
|
|
|
} |
|
|
|
|
}, [inputValue]); |
|
|
|
|
|
|
|
|
|
const light = theme === "light"; |
|
|
|
|
return ( |
|
|
|
|
<div |
|
|
|
|
className="courses main d-flex flex-column" |
|
|
|
|
className={_.join( |
|
|
|
|
[ |
|
|
|
|
"courses main d-flex flex-column", |
|
|
|
|
light ? "courses-light bg-white" : "courses-dark bg-black", |
|
|
|
|
], |
|
|
|
|
" " |
|
|
|
|
)} |
|
|
|
|
style={{ filter: loading ? "blur(8px)" : "" }} |
|
|
|
|
> |
|
|
|
|
<Navbar /> |
|
|
|
@ -72,9 +79,19 @@ function Courses({ |
|
|
|
|
item.gradeId === |
|
|
|
|
(selectedMenu || Number(localStorage.getItem("selectedGrade"))) |
|
|
|
|
) |
|
|
|
|
.map((item: any, i: any) => <Course data={item} key={i} theme={theme} />)} |
|
|
|
|
.map((item: any, i: any) => ( |
|
|
|
|
<Course data={item} key={i} theme={theme} /> |
|
|
|
|
))} |
|
|
|
|
|
|
|
|
|
<h3 className={(inputValue && sortFilterCourse.length === 0 ) ? "courses-notFound" : ""}>محصولی یافت نشد.</h3> |
|
|
|
|
<h3 |
|
|
|
|
className={ |
|
|
|
|
inputValue && sortFilterCourse.length === 0 |
|
|
|
|
? "courses-notFound" |
|
|
|
|
: "" |
|
|
|
|
} |
|
|
|
|
> |
|
|
|
|
محصولی یافت نشد. |
|
|
|
|
</h3> |
|
|
|
|
{page === "search" && vocal ? ( |
|
|
|
|
<Vocal setVocal={setVocal} setInputValue={setInputValue} /> |
|
|
|
|
) : null} |
|
|
|
|