refactoring: renamed actions tp billActions

This commit is contained in:
2024-01-05 14:30:44 +01:00
parent b02eafa309
commit f26aae7d66
6 changed files with 15 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
import { deleteBillById } from '@/app/lib/actions';
import { deleteBillById } from '@/app/lib/billActions';
import { notFound, redirect } from 'next/navigation';
export default async function Page({ params:{ id } }: { params: { id:string } }) {

View File

@@ -1,5 +1,5 @@
import { BillingLocation, Bill } from '@/app/lib/db-types';
import { fetchBillById } from '@/app/lib/actions';
import { fetchBillById } from '@/app/lib/billActions';
import clientPromise from '@/app/lib/mongodb';
import { BillEditForm } from '@/app/ui/BillEditForm';
import { ObjectId } from 'mongodb';