mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 22:47:15 +01:00
add calendar to admin booking page
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import React, { useEffect, useState } from 'react'
|
import React, { useEffect, useState } from 'react'
|
||||||
import Footer from '../../../../components/footer'
|
import Footer from '../../../../components/footer'
|
||||||
import Header from '../../../../components/header'
|
import Header from '../../../../components/header'
|
||||||
|
import Calendar from '../../../../components/calendar'
|
||||||
import { getServerSideBooking } from '../../../../lib/getServerSideProps'
|
import { getServerSideBooking } from '../../../../lib/getServerSideProps'
|
||||||
import { BookingDocument } from '../../../../db/booking'
|
import { BookingDocument } from '../../../../db/booking'
|
||||||
import { getBookingStatus } from '../../../../helpers/booking'
|
import { getBookingStatus } from '../../../../helpers/booking'
|
||||||
@@ -56,6 +57,7 @@ export default function ShowBookingAdmin({
|
|||||||
<Header />
|
<Header />
|
||||||
<main className="flex-grow">
|
<main className="flex-grow">
|
||||||
<h2 className="text-3xl">Buchung {booking.uuid}</h2>
|
<h2 className="text-3xl">Buchung {booking.uuid}</h2>
|
||||||
|
<Calendar />
|
||||||
<div>
|
<div>
|
||||||
<strong>Buchungszeitraum:</strong>{' '}
|
<strong>Buchungszeitraum:</strong>{' '}
|
||||||
{dateFormatFrontend(new Date(booking.startDate))} -{' '}
|
{dateFormatFrontend(new Date(booking.startDate))} -{' '}
|
||||||
|
|||||||
Reference in New Issue
Block a user