mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
type form event
This commit is contained in:
committed by
Thomas Ruoff
parent
64029ec06a
commit
59ab8b64fa
@@ -116,7 +116,7 @@ export default function BillPage({
|
||||
// in case the props change, update the internal state
|
||||
useEffect(() => setBooking(bookingProp), [bookingProp])
|
||||
|
||||
const onSubmit = async (event) => {
|
||||
const onSubmit = async (event: React.FormEvent<HTMLFormElement>) => {
|
||||
event.preventDefault()
|
||||
const bill = await saveBill(booking, {
|
||||
milageStart,
|
||||
|
||||
Reference in New Issue
Block a user