allow sending email again

This commit is contained in:
Thomas Ruoff
2023-02-03 22:16:52 +01:00
parent abd6ac7a8d
commit 10d1b58729
3 changed files with 24 additions and 25 deletions

View File

@@ -2,12 +2,11 @@ import React from 'react'
import Link from 'next/link'
import { daysFormatFrontend } from '../helpers/date'
import { BookingDocument } from '../db/booking'
export default function BookingTable({
booking,
}: {
booking: BookingDocument
booking: Booking
}) {
const data = [
{ name: 'Status', value: booking.status },
@@ -58,9 +57,8 @@ export default function BookingTable({
{data.map(({ name, value }, index) => (
<div
key={`${booking.uuid}-${name}`}
className={`${
index % 2 === 1 ? 'bg-white' : 'bg-gray-100'
} px-2 py-3 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6`}
className={`${index % 2 === 1 ? 'bg-white' : 'bg-gray-100'
} px-2 py-3 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6`}
>
<dt className="text-sm font-medium text-gray-500">{name}</dt>
<dd className="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
@@ -72,4 +70,4 @@ export default function BookingTable({
</div>
</div>
)
}
}