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

@@ -1,6 +1,7 @@
import { notFound } from 'next/navigation';
import { fetchLocationById } from '@/app/lib/actions/locationActions';
import { LocationDeleteForm } from '@/app/ui/LocationDeleteForm';
import { Main } from '@/app/ui/Main';
export default async function Page({ params:{ id } }: { params: { id:string } }) {
@@ -10,5 +11,9 @@ export default async function Page({ params:{ id } }: { params: { id:string } })
return(notFound());
}
return (<LocationDeleteForm location={location} />);
return (
<Main>
<LocationDeleteForm location={location} />
</Main>
);
}