change data clinics & page clinics tab about & contact & doctors

This commit is contained in:
Ehsan
2024-08-13 01:23:44 +03:30
parent f5ce58ef90
commit 5568a989fe
27 changed files with 368 additions and 92 deletions
+4 -4
View File
@@ -3,11 +3,11 @@ import { useState } from 'react';
import Tabs from "./Tabs";
import About from './components/about';
import Contact from './components/Contact';
import Doctors from './components/Doctors';
import Contact from './components/contact';
import Doctors from './components/doctors';
function ClinicPage({ data }) {
function ClinicPage({ data, doctors }) {
const [value, setValue] = useState(0);
const handleChange = (event, newValue) => setValue(newValue);
@@ -15,7 +15,7 @@ function ClinicPage({ data }) {
const Components = [
<About data={data} />,
<Contact data={data} />,
<Doctors data={data} />
<Doctors doctors={doctors} />
];
return (