delete forms were not wrapped in <Main>

This commit is contained in:
2024-02-15 15:52:27 +01:00
parent 4fe918840b
commit cebe5a7239
4 changed files with 26 additions and 18 deletions

View File

@@ -3,6 +3,7 @@ import { fetchLocationById } from '@/app/lib/actions/locationActions';
import { LocationDeleteForm } from '@/app/ui/LocationDeleteForm';
import { BillDeleteForm } from '@/app/ui/BillDeleteForm';
import { fetchBillById } from '@/app/lib/actions/billActions';
import { Main } from '@/app/ui/Main';
export default async function Page({ params:{ id } }: { params: { id:string } }) {
const [locationID, billID] = id.split('-');
@@ -13,5 +14,9 @@ export default async function Page({ params:{ id } }: { params: { id:string } })
return(notFound());
}
return (<BillDeleteForm location={location} bill={bill} />);
return (
<Main>
<BillDeleteForm location={location} bill={bill} />
</Main>
);
}