diff --git a/package.json b/package.json index 88f46612..7d7e7391 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "url": "httsp://wellms.io" }, "dependencies": { - "@escolalms/components": "^0.0.140", + "@escolalms/components": "^0.0.141", "@escolalms/h5p-react": "^0.2.19", "@escolalms/sdk": "0.5.34", "@escolalms/ts-models": "^0.0.35", diff --git a/src/components/Courses/CoursesUserSlider/index.tsx b/src/components/Courses/CoursesUserSlider/index.tsx index a53ffa10..5fbcdaad 100644 --- a/src/components/Courses/CoursesUserSlider/index.tsx +++ b/src/components/Courses/CoursesUserSlider/index.tsx @@ -10,6 +10,7 @@ import { ResponsiveImage } from "@escolalms/components/lib/components/organisms/ import CourseImgPlaceholder from "@/components/Courses/CourseImgPlaceholder"; import { NewCourseCard } from "@escolalms/components/lib/index"; import CategoriesBreadCrumbs from "@/components/Categories/CategoriesBreadCrumbs"; +import { isPast } from "date-fns/esm"; const Wrapper = styled.div` position: relative; @@ -56,6 +57,11 @@ const CoursesUserSlider: React.FC = ({ {item.image_path ? ( diff --git a/src/components/Profile/ProfileCourses/components/CourseCardItem/index.tsx b/src/components/Profile/ProfileCourses/components/CourseCardItem/index.tsx index 898e7969..1c0f88ea 100644 --- a/src/components/Profile/ProfileCourses/components/CourseCardItem/index.tsx +++ b/src/components/Profile/ProfileCourses/components/CourseCardItem/index.tsx @@ -9,6 +9,7 @@ import CourseCardWrapper from "@/components/Courses/CourseCardWrapper"; import CategoriesBreadCrumbs from "@/components/Categories/CategoriesBreadCrumbs"; import { CourseCardActions } from "../../CourseCardActions"; import { NewCourseCard } from "@escolalms/components/lib/index"; +import { isPast } from "date-fns/esm"; type Props = { course: API.Course & { @@ -25,6 +26,11 @@ const CourseCardItem: React.FC = ({ course }) => { {course.image_path ? (