yearMonth split into year + month
This commit is contained in:
@@ -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} />);
|
||||
}
|
||||
Reference in New Issue
Block a user