handel filter clinic and added changenumber function

This commit is contained in:
Arezoo
2025-10-21 13:31:44 +03:30
parent e8754fda35
commit 2cbf96ec6f
14 changed files with 171 additions and 72 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ async function Clinic({ params: { slug } }) {
return (
<Layout>
<ClinicPage data={clinic} doctors={doctors} />
<ClinicPage data={clinic} doctors={doctors} slug={slug} />
</Layout>
);
}
+7 -7
View File
@@ -13,13 +13,13 @@ import PointD from "@/components/icons/PointD";
function ItemDoctor({ doctor, loading, setDoctors }) {
const handleLoading = () => {
// setDoctors((prevDoctors) =>
// prevDoctors.map((item) =>
// item.id === doctor.id
// ? { ...item, loading: true }
// : { ...item, loading: false }
// )
// );
setDoctors((prevDoctors) =>
prevDoctors.map((item) =>
item.id === doctor.id
? { ...item, loading: true }
: { ...item, loading: false }
)
);
};
return (
-2
View File
@@ -2,8 +2,6 @@ import CloseModalD from "@/components/icons/CloseModalD";
import Image from "next/image";
function Content({ data, onClose }) {
console.log(data);
const { latitude, longitude } = data && data.map;
const maps = [
-2
View File
@@ -5,8 +5,6 @@ import { styleDefault } from "@/mui";
import Content from "./Content";
function ModalOpenLocation({ open, data, setOpen, handleClose, children }) {
console.log(data);
const toggleDrawer = (newOpen) => () => {
setOpen(newOpen);
};
+1 -1
View File
@@ -129,7 +129,7 @@ export default async function sitemap() {
arr.findIndex(i => i.url === item.url) === index
);
console.log(`Total unique URLs: ${uniqueUrls.length}`);
return uniqueUrls;
} catch (error) {
console.error('Error generating sitemap:', error);