Added suspense to LocationAddPage and LocationDetelePage

This commit is contained in:
2024-02-06 14:48:19 +01:00
parent 3670b4db9f
commit 4ef2330ad4
7 changed files with 60 additions and 28 deletions

View File

@@ -0,0 +1,9 @@
import { notFound } from 'next/navigation';
import { LocationEditForm } from '@/app/ui/LocationEditForm';
import { fetchLocationById } from '@/app/lib/actions/locationActions';
import { YearMonth } from '@/app/lib/db-types';
import { Main } from '@/app/ui/Main';
export default async function LocationAddPage({ yearMonth }: { yearMonth:YearMonth }) {
return (<LocationEditForm yearMonth={yearMonth} />);
}