mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
add missing layout to bookings/[uuid]
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import React, { useEffect, useState } from 'react'
|
||||
import { useRouter } from 'next/router'
|
||||
import Calendar from '../../../../components/calendar'
|
||||
import { getServerSideBooking } from '../../../../lib/getServerSideProps'
|
||||
import { IBooking } from '../../../../db/booking'
|
||||
@@ -7,6 +6,7 @@ import { patchBooking } from '../../../../helpers/booking'
|
||||
import { log } from '../../../../helpers/log'
|
||||
import { BOOKING_STATUS } from '../../../../db/enums'
|
||||
import BookingTable from '../../../../components/bookingTable'
|
||||
import Layout from '../../../../components/layout'
|
||||
import withAuth from '../../../../helpers/withAuth'
|
||||
|
||||
export const getServerSideProps = getServerSideBooking
|
||||
@@ -33,7 +33,7 @@ function ShowBookingAdmin({ booking: bookingProp }: { booking: IBooking }) {
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<Layout>
|
||||
<h2 className="text-3xl">Buchung {booking.uuid}</h2>
|
||||
<Calendar start={booking.startDate} end={booking.endDate} />
|
||||
<BookingTable booking={booking} />
|
||||
@@ -63,10 +63,8 @@ function ShowBookingAdmin({ booking: bookingProp }: { booking: IBooking }) {
|
||||
Buchung Abweisen
|
||||
</button>
|
||||
</div>
|
||||
</>
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
|
||||
ShowBookingAdmin.authenticationRequired = true
|
||||
|
||||
export default withAuth(ShowBookingAdmin)
|
||||
|
||||
Reference in New Issue
Block a user