From 621d6ad5fbaaa7ec6001d3faa83d421b34278bde Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Mon, 28 Oct 2024 21:04:42 +0800 Subject: [PATCH] loading time --- components/Home/Home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Home/Home.tsx b/components/Home/Home.tsx index c546d8f..51bc59d 100644 --- a/components/Home/Home.tsx +++ b/components/Home/Home.tsx @@ -16,7 +16,7 @@ const Home = ({ courses, settings }: { courses: CoursesProps[], settings: Settin 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(); }, []);