|
|
@ -5,6 +5,7 @@ import greenPlay from "../../../assets/icons/play-green.png"; |
|
|
|
import greenDocument from "../../../assets/icons/document-green.png"; |
|
|
|
import greenDocument from "../../../assets/icons/document-green.png"; |
|
|
|
import whitePlay from "../../../assets/icons/white-play.png"; |
|
|
|
import whitePlay from "../../../assets/icons/white-play.png"; |
|
|
|
import document from "../../../assets/icons/document.png"; |
|
|
|
import document from "../../../assets/icons/document.png"; |
|
|
|
|
|
|
|
import lock from "../../../assets/icons/lock.png"; |
|
|
|
import { connect } from "react-redux"; |
|
|
|
import { connect } from "react-redux"; |
|
|
|
import { book, publicApi } from "../../../redux/actions"; |
|
|
|
import { book, publicApi } from "../../../redux/actions"; |
|
|
|
import location from "../../../util/location"; |
|
|
|
import location from "../../../util/location"; |
|
|
@ -123,16 +124,16 @@ function Lesson({ |
|
|
|
<img src={document} alt="" /> |
|
|
|
<img src={document} alt="" /> |
|
|
|
))} |
|
|
|
))} |
|
|
|
</Link> |
|
|
|
</Link> |
|
|
|
<Link to={"/video/" + data.id} > |
|
|
|
<Link to={"/video/" + data.id}> |
|
|
|
<img |
|
|
|
<img |
|
|
|
className={ |
|
|
|
className={ |
|
|
|
selectedLesson === data.id |
|
|
|
selectedLesson === data.id |
|
|
|
? "lesson__files--sample___active" |
|
|
|
? "lesson__files--sample___active" |
|
|
|
: "" |
|
|
|
: "" |
|
|
|
} |
|
|
|
} |
|
|
|
src={`https://dnvn.ir/api/v1/file/${data.posterId}`} |
|
|
|
src={`https://dnvn.ir/api/v1/file/${data.posterId}`} |
|
|
|
alt="" |
|
|
|
alt="" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Link> |
|
|
|
</Link> |
|
|
|
<h5>{data.name}</h5> |
|
|
|
<h5>{data.name}</h5> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -142,9 +143,9 @@ function Lesson({ |
|
|
|
to={"/video/" + data.id} |
|
|
|
to={"/video/" + data.id} |
|
|
|
onClick={() => setCategory(lesson[0].categoryId, data.name)} |
|
|
|
onClick={() => setCategory(lesson[0].categoryId, data.name)} |
|
|
|
> |
|
|
|
> |
|
|
|
<li>{"مشاهده"}</li> |
|
|
|
<li>مشاهده</li> |
|
|
|
</Link> |
|
|
|
</Link> |
|
|
|
{/* <li>{data.download ? "دانلود" : <img src={lock} alt="" />}</li> */} |
|
|
|
<li>{data.isFreeVOD ? "دانلود" : <img src={lock} alt="" />}</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
{selectedLesson === data.id && ( |
|
|
|
{selectedLesson === data.id && ( |
|
|
|