refactoring: actions moved to seprate dir

This commit is contained in:
2024-01-09 15:00:26 +01:00
parent af7d42891c
commit 8112c9765d
13 changed files with 56 additions and 58 deletions

View File

@@ -4,7 +4,7 @@ import { DocumentIcon, TrashIcon } from "@heroicons/react/24/outline";
import { Bill } from "../lib/db-types";
import React, { FC } from "react";
import { useFormState } from "react-dom";
import { gotoHome, updateOrAddBill } from "../lib/billActions";
import { gotoHome, updateOrAddBill } from "../lib/actions/billActions";
// Next.js does not encode an utf-8 file name correctly when sending a form with a file attachment
// This is a workaround for that

View File

@@ -3,9 +3,9 @@
import { TrashIcon } from "@heroicons/react/24/outline";
import { FC } from "react";
import { BillingLocation } from "../lib/db-types";
import { updateOrAddLocation } from "../lib/locationActions";
import { updateOrAddLocation } from "../lib/actions/locationActions";
import { useFormState } from "react-dom";
import { gotoHome } from "../lib/billActions";
import { gotoHome } from "../lib/actions/billActions";
export interface LocationEditFormProps {
/** location which should be edited */