yearMonth split into year + month

This commit is contained in:
2024-01-09 15:43:01 +01:00
parent 90edcf14e1
commit 46b65711a8
12 changed files with 73 additions and 88 deletions

View File

@@ -1,6 +1,7 @@
import { LocationEditForm } from '@/app/ui/LocationEditForm';
export default async function Page({ params:{ id:yearMonth } }: { params: { id:string } }) {
export default async function Page({ params:{ id } }: { params: { id:string } }) {
return (<LocationEditForm yearMonth={yearMonth} />);
const [year, month] = id.split("-");
return (<LocationEditForm year={year} month={month} />);
}