year & month replaced by yearMonth object
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { parseYearMonth } from '@/app/lib/format';
|
||||
import { LocationEditForm } from '@/app/ui/LocationEditForm';
|
||||
|
||||
export default async function Page({ params:{ id } }: { params: { id:string } }) {
|
||||
|
||||
const [year, month] = id.split("-");
|
||||
return (<LocationEditForm year={year} month={month} />);
|
||||
return (<LocationEditForm yearMonth={ parseYearMonth(id) } />);
|
||||
}
|
||||
Reference in New Issue
Block a user