refactoring: actions moved to seprate dir
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user