mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
rename prop if a component requires authentication
This commit is contained in:
@@ -28,7 +28,7 @@ export default function MyApp({
|
||||
return (
|
||||
<div className="flex flex-col min-h-screen">
|
||||
<SessionProvider session={session}>
|
||||
{Component.auth ? (
|
||||
{Component.authenticationRequired ? (
|
||||
<Auth>
|
||||
<Component {...pageProps} />
|
||||
</Auth>
|
||||
|
||||
@@ -261,6 +261,6 @@ function BookingBillPage({
|
||||
)
|
||||
}
|
||||
|
||||
BookingBillPage.auth = true
|
||||
BookingBillPage.authenticationRequired = true
|
||||
|
||||
export default BookingBillPage
|
||||
|
||||
@@ -74,6 +74,6 @@ function ShowBookingAdmin({ booking: bookingProp }: { booking: Booking }) {
|
||||
)
|
||||
}
|
||||
|
||||
ShowBookingAdmin.auth = true
|
||||
ShowBookingAdmin.authenticationRequired = true
|
||||
|
||||
export default ShowBookingAdmin
|
||||
|
||||
@@ -69,6 +69,6 @@ function AdminRecentBookings({ bookings }) {
|
||||
)
|
||||
}
|
||||
|
||||
AdminRecentBookings.auth = true
|
||||
AdminRecentBookings.authenticationRequired = true
|
||||
|
||||
export default AdminRecentBookings
|
||||
|
||||
Reference in New Issue
Block a user