mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +01:00
prettier all the things
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
import React from 'react'
|
||||
import Link from 'next/link'
|
||||
import { useSession } from 'next-auth/react'
|
||||
import Layout from '../../components/layout';
|
||||
import Denied from '../../components/denied';
|
||||
import Layout from '../../components/layout'
|
||||
import Denied from '../../components/denied'
|
||||
import { daysFormatFrontend } from '../../helpers/date'
|
||||
|
||||
import { getServerSideRecentBookings } from '../../lib/getServerSideProps'
|
||||
|
||||
export const getServerSideProps = getServerSideRecentBookings;
|
||||
export const getServerSideProps = getServerSideRecentBookings
|
||||
|
||||
function AdminRecentBookings({ bookings }) {
|
||||
const { data: session, status} = useSession();
|
||||
const { data: session, status } = useSession()
|
||||
|
||||
if (typeof window !== 'undefined' && status === "loading") return null;
|
||||
if (typeof window !== 'undefined' && status === 'loading') return null
|
||||
|
||||
if (!bookings) return null;
|
||||
if (!bookings) return null
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
@@ -71,4 +71,4 @@ function AdminRecentBookings({ bookings }) {
|
||||
|
||||
AdminRecentBookings.auth = true
|
||||
|
||||
export default AdminRecentBookings;
|
||||
export default AdminRecentBookings
|
||||
|
||||
Reference in New Issue
Block a user