mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
add button for bill to admin/booking
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import React, { useEffect, useState } from 'react'
|
import React, { useEffect, useState } from 'react'
|
||||||
import { GetServerSideProps } from 'next'
|
import { GetServerSideProps } from 'next'
|
||||||
|
import { useRouter } from 'next/router'
|
||||||
|
import Link from 'next/link'
|
||||||
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 Calendar from '../../../../components/calendar'
|
||||||
@@ -54,6 +56,7 @@ export default function ShowBookingAdmin({
|
|||||||
}: {
|
}: {
|
||||||
booking: Booking
|
booking: Booking
|
||||||
}) {
|
}) {
|
||||||
|
const router = useRouter()
|
||||||
const [booking, setBooking] = useState(bookingProp)
|
const [booking, setBooking] = useState(bookingProp)
|
||||||
const [storingBooking, setStoringBooking] = useState(false)
|
const [storingBooking, setStoringBooking] = useState(false)
|
||||||
const [storingBookingError, setStoringBookingError] = useState(null)
|
const [storingBookingError, setStoringBookingError] = useState(null)
|
||||||
@@ -109,6 +112,9 @@ export default function ShowBookingAdmin({
|
|||||||
>
|
>
|
||||||
Buchung Abweisen
|
Buchung Abweisen
|
||||||
</button>
|
</button>
|
||||||
|
<Link href={`${router.asPath}/bill`}>
|
||||||
|
<a className="btn btn-gray">Rechnung</a>
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user