cookie's now only used under /admin

This commit is contained in:
Thomas Ruoff
2024-09-11 23:44:31 +02:00
parent c671b622d5
commit af3262e55e
8 changed files with 77 additions and 61 deletions

View File

@@ -1,5 +1,7 @@
import React from 'react'
import React, { ReactElement } from 'react'
import BookingTable from '../../components/bookingTable'
import Layout from '../../components/layout'
import withAuth from '../../helpers/withAuth'
import { getServerSideRecentBookings } from '../../lib/getServerSideProps'
@@ -23,6 +25,4 @@ function AdminRecentBookings({ bookings }) {
)
}
AdminRecentBookings.authenticationRequired = true
export default AdminRecentBookings
export default withAuth(AdminRecentBookings)