add loading all page & change bugs
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user