moved all the pages into [locale]

This commit is contained in:
2024-02-16 15:51:26 +01:00
parent 64bd026d46
commit ba0934e8cd
19 changed files with 0 additions and 93 deletions

View File

@@ -0,0 +1,20 @@
import { fetchBillById } from '@/app/lib/actions/billActions';
import { BillEditForm } from '@/app/ui/BillEditForm';
import { Main } from '@/app/ui/Main';
import { notFound } from 'next/navigation';
export default async function Page({ params:{ id } }: { params: { id:string } }) {
const [locationID, billID] = id.split('-');
const [location, bill] = await fetchBillById(locationID, billID) ?? [];
if (!bill || !location) {
return(notFound());
}
return (
<Main>
<BillEditForm location={location} bill={bill} />
</Main>
);
}