Location Edit/Add/Delete form migrated back to server-side component
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { LocationEditForm } from '@/app/ui/LocationEditForm';
|
||||
import { YearMonth } from '@/app/lib/db-types';
|
||||
|
||||
export default function LocationAddPage({ yearMonth }: { yearMonth:YearMonth }) {
|
||||
export default async function LocationAddPage({ yearMonth }: { yearMonth:YearMonth }) {
|
||||
return (<LocationEditForm yearMonth={yearMonth} />);
|
||||
}
|
||||
@@ -1,11 +1,6 @@
|
||||
import { parseYearMonth } from '@/app/lib/format';
|
||||
import LocationAddPage from './LocationAddPage';
|
||||
import { Main } from '@/app/ui/Main';
|
||||
import dynamic from 'next/dynamic'
|
||||
|
||||
const LocationAddPage = dynamic(
|
||||
() => import('./LocationAddPage'),
|
||||
{ ssr: false }
|
||||
)
|
||||
|
||||
export default async function Page({ params:{ id } }: { params: { id:string } }) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user