removing legacy code

This commit is contained in:
2024-02-06 15:37:37 +01:00
parent f5fb6034b3
commit a3c7e8f4c9

View File

@@ -6,7 +6,6 @@ import React, { FC } from "react";
import { useFormState } from "react-dom";
import { updateOrAddBill } from "../lib/actions/billActions";
import Link from "next/link";
import { gotoHome } from "../lib/actions/navigationActions";
import { formatYearMonth } from "../lib/format";
// Next.js does not encode an utf-8 file name correctly when sending a form with a file attachment
@@ -35,11 +34,6 @@ export const BillEditForm:FC<BillEditFormProps> = ({ location, bill }) => {
const [ isPaid, setIsPaid ] = React.useState<boolean>(paid);
// redirect to the main page
const handleCancel = () => {
gotoHome(location.yearMonth);
};
const billPaid_handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
setIsPaid(event.target.checked);
}