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
+16 -4
View File
@@ -1,8 +1,20 @@
import HeadPageList from "@/app/component/head"
import SmSearch from "../searchHead/SmSearch"
import List from "./list"
'use client';
import { useEffect, useState } from "react";
import List from "./list";
import SmSearch from "../searchHead/SmSearch";
import HeadPageList from "@/app/component/head";
function SpecialtiesPage() {
const [loading, setLoading] = useState(true);
useEffect(() => {
setTimeout(() => {
setLoading(false);
}, 2000);
}, []);
return (
<div className="">
<HeadPageList
@@ -11,7 +23,7 @@ function SpecialtiesPage() {
>
<SmSearch placeholder='جستجوی تخصص' />
</HeadPageList>
<List />
<List loading={loading} />
</div>
)
}