From ddd8bd85e4fd7ed1469b2667e17f18b8b5490779 Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Mon, 28 Oct 2024 21:26:03 +0800 Subject: [PATCH] timer changed --- components/Aboutus/Home.tsx | 2 +- components/Course/Course.tsx | 2 +- components/Organ/Home.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Aboutus/Home.tsx b/components/Aboutus/Home.tsx index eef56bc..b0557b1 100644 --- a/components/Aboutus/Home.tsx +++ b/components/Aboutus/Home.tsx @@ -16,7 +16,7 @@ const Home = ({ settings, aboutus }: { settings: SettingsProps, aboutus: Aboutus useEffect(() => { const loadCourses = async () => { setLoading(true); - await new Promise(resolve => setTimeout(resolve, 300)); // 0.5 second delay + await new Promise(resolve => setTimeout(resolve, 100)); // 0.5 second delay setLoading(false); }; loadCourses(); }, []); diff --git a/components/Course/Course.tsx b/components/Course/Course.tsx index 113281a..ff54756 100644 --- a/components/Course/Course.tsx +++ b/components/Course/Course.tsx @@ -16,7 +16,7 @@ const Course = ({ course, settings }: { course: CoursesProps, settings: Settings useEffect(() => { const loadCourses = async () => { setLoading(true); - await new Promise(resolve => setTimeout(resolve, 300)); // 0.5 second delay + await new Promise(resolve => setTimeout(resolve, 100)); // 0.5 second delay setLoading(false); }; loadCourses(); }, []); diff --git a/components/Organ/Home.tsx b/components/Organ/Home.tsx index 0016468..b78eb43 100644 --- a/components/Organ/Home.tsx +++ b/components/Organ/Home.tsx @@ -16,7 +16,7 @@ const Home = ({ settings, organ }: { settings: SettingsProps, organ: OrganProps[ useEffect(() => { const loadCourses = async () => { setLoading(true); - await new Promise(resolve => setTimeout(resolve, 300)); // 0.5 second delay + await new Promise(resolve => setTimeout(resolve, 100)); // 0.5 second delay setLoading(false); }; loadCourses(); }, []);