diff --git a/components/CourseCard.tsx b/components/CourseCard.tsx index c86cfe4..32b1285 100644 --- a/components/CourseCard.tsx +++ b/components/CourseCard.tsx @@ -1,21 +1,9 @@ import { Course } from "../utils/types.ts"; import IconCircle from "https://deno.land/x/tabler_icons_tsx@0.0.5/tsx/circle.tsx"; -import IconcircleCheck from "https://deno.land/x/tabler_icons_tsx@0.0.5/tsx/circle-check.tsx"; - +// import IconcircleCheck from "https://deno.land/x/tabler_icons_tsx@0.0.5/tsx/circle-check.tsx"; export default function CourseCard(props: { course: Course }) { - - // FOR TESTING PURPOSES ONLY - // add comments course to the local storage - // localStorage.setItem("completedCourses", JSON.stringify(["comments"])); - - // check if the student has completed the course from the local storage - const completedCourses = localStorage.getItem("completedCourses"); - const completedCoursesArray = completedCourses - ? JSON.parse(completedCourses) - : []; - const isCompleted = completedCoursesArray.includes(props.course.slug); const { course } = props; return (

- {/*

diff --git a/tailwind.config.ts b/tailwind.config.ts index 2acefd8..34193ed 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -4,7 +4,6 @@ import daisyui from "daisyui"; export default { content: [ "{routes,islands,components}/**/*.{ts,tsx}", - // TO MAKE TAILWIND EXTENTION WORKING :( "routes/**/*.{ts,tsx}", "islands/**/*.{ts,tsx}", "components/**/*.{ts,tsx}",