design page booking & add page loginverify
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import BookingPage from '@/components/booking';
|
||||
import Layout from '@/components/layout';
|
||||
import doctors from '@/data/doctors.json';
|
||||
|
||||
function Booking({ params: { slug } }) {
|
||||
|
||||
const doctor = doctors.find(item => item.id === +slug);
|
||||
|
||||
return (
|
||||
<Layout title='رزرو' name='booking'>
|
||||
<BookingPage
|
||||
doctor={doctor}
|
||||
/>
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
|
||||
export default Booking
|
||||
@@ -1,12 +0,0 @@
|
||||
import BookingPage from '@/components/booking';
|
||||
import Layout from '@/components/layout';
|
||||
|
||||
function Booking() {
|
||||
return (
|
||||
<Layout title='رزرو' name='about-us'>
|
||||
<BookingPage />
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
|
||||
export default Booking
|
||||
Reference in New Issue
Block a user