mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 23:17:12 +01:00
cookie's now only used under /admin
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user