almost change all layouts to ssr
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import DoctorPage from "@/components/doctor";
|
||||
import Layout from "@/components/layout/StLayout";
|
||||
import doctors from "@/data/doctors.json";
|
||||
import Layout from "@/components/layout";
|
||||
|
||||
function Doctor({ params: { slug } }) {
|
||||
const doctor = doctors.find((item) => item.id === +slug);
|
||||
|
||||
return (
|
||||
<Layout title="دکتر ها">
|
||||
<Layout>
|
||||
<DoctorPage doctor={doctor} />
|
||||
</Layout>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user