timer changed
This commit is contained in:
parent
1b149ec8cf
commit
ddd8bd85e4
|
@ -16,7 +16,7 @@ const Home = ({ settings, aboutus }: { settings: SettingsProps, aboutus: Aboutus
|
||||||
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();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
|
@ -16,7 +16,7 @@ const Course = ({ course, settings }: { course: CoursesProps, settings: Settings
|
||||||
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();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
|
@ -16,7 +16,7 @@ const Home = ({ settings, organ }: { settings: SettingsProps, organ: OrganProps[
|
||||||
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();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
Loading…
Reference in New Issue