add loading all page & change bugs

This commit is contained in:
Ehsan
2024-09-05 22:20:18 +03:30
parent 087ed4a818
commit c45a161fcb
72 changed files with 1208 additions and 661 deletions
+13 -2
View File
@@ -1,9 +1,20 @@
import HeadPageList from "@/app/component/head";
'use client';
import { useEffect, useState } from "react";
import List from "./list";
import SearchBar from "./head/SearchBar";
import HeadPageList from "@/app/component/head";
function ClinicsPage() {
const [loading, setLoading] = useState(true);
useEffect(() => {
setTimeout(() => {
setLoading(false);
}, 2000);
}, []);
return (
<div>
@@ -13,7 +24,7 @@ function ClinicsPage() {
>
<SearchBar />
</HeadPageList>
<List />
<List loading={loading} />
</div>
)
}