mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +01:00
move Layout into _app.tsx
This commit is contained in:
committed by
Thomas Ruoff
parent
7389289b81
commit
2fd3a47e72
@@ -1,6 +1,5 @@
|
||||
import React from 'react'
|
||||
import BookingTable from '../../components/bookingTable'
|
||||
import Layout from '../../components/layout'
|
||||
|
||||
import { getServerSideRecentBookings } from '../../lib/getServerSideProps'
|
||||
|
||||
@@ -9,20 +8,18 @@ export const getServerSideProps = getServerSideRecentBookings
|
||||
function AdminRecentBookings({ bookings }) {
|
||||
if (!bookings || !bookings.length) {
|
||||
return (
|
||||
<Layout>
|
||||
<h3 className="text-lg leading-6 font-medium text-gray-900">
|
||||
No recent bookings 😿
|
||||
</h3>
|
||||
</Layout>
|
||||
<h3 className="text-lg leading-6 font-medium text-gray-900">
|
||||
No recent bookings 😿
|
||||
</h3>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<>
|
||||
{bookings.map((booking: any) => (
|
||||
<BookingTable key={booking.uuid} booking={booking} />
|
||||
))}
|
||||
</Layout>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user