diff --git a/components/Course/Course.tsx b/components/Course/Course.tsx index ddb529f..113281a 100644 --- a/components/Course/Course.tsx +++ b/components/Course/Course.tsx @@ -1,5 +1,5 @@ "use client" -import React, { useEffect, useState, lazy, Suspense } from 'react' +import React, { useEffect, useState, Suspense } from 'react' import Banner from './Banner' import LongDesc from './LongDesc' import CourseImagesSilder from './CourseImagesSilder' @@ -21,8 +21,6 @@ const Course = ({ course, settings }: { course: CoursesProps, settings: Settings }; loadCourses(); }, []); - const startLoading = () => setLoading(true); - const stopLoading = () => setLoading(false); return ( diff --git a/components/Course/CourseImagesSilder.tsx b/components/Course/CourseImagesSilder.tsx index 025869d..2cc56ef 100644 --- a/components/Course/CourseImagesSilder.tsx +++ b/components/Course/CourseImagesSilder.tsx @@ -4,11 +4,11 @@ import "slick-carousel/slick/slick.css"; import "slick-carousel/slick/slick-theme.css"; import Slider from "react-slick"; import './slick.css' -import { CoursesProps, CoursesArrayProps } from "@/types"; +import { CoursesProps } from "@/types"; import { IoIosArrowForward, IoIosArrowBack } from "react-icons/io"; const SamplePrevArrow = (props: any) => { - const { className, style, onClick } = props; + const { onClick } = props; return (