From a583b8c5adea61ccad6d30c97fcdd97a69d09f2d Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Tue, 8 Oct 2024 14:58:04 +0800 Subject: [PATCH] updated --- components/Course/Course.tsx | 4 +--- components/Course/CourseImagesSilder.tsx | 6 +++--- components/CoursesSilder.tsx | 9 +++------ components/Footer.tsx | 2 +- components/Hero1.tsx | 3 --- components/Hero2.tsx | 5 +---- components/Home/Home.tsx | 4 +--- components/Navbar/Nav.tsx | 2 -- components/Navbar/ResponsiveNav.tsx | 1 - next.config.mjs | 10 +++------- 10 files changed, 13 insertions(+), 33 deletions(-) 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 (