loading time

This commit is contained in:
Philip Cheung 2024-10-28 21:04:42 +08:00
parent 29bc0a58bb
commit 621d6ad5fb
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ const Home = ({ courses, settings }: { courses: CoursesProps[], settings: Settin
useEffect(() => { useEffect(() => {
const loadCourses = async () => { const loadCourses = async () => {
setLoading(true); 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); setLoading(false);
}; loadCourses(); }; loadCourses();
}, []); }, []);