diff --git a/src/app/(pages)/admin/article/[externalId]/page.tsx b/src/app/(pages)/admin/article/[externalId]/page.tsx index 2d32d0e..f88eff4 100644 --- a/src/app/(pages)/admin/article/[externalId]/page.tsx +++ b/src/app/(pages)/admin/article/[externalId]/page.tsx @@ -4,20 +4,28 @@ import { UUIDv4 } from '@/utils/types/uuid'; import { ArrowLeftIcon } from 'lucide-react'; import Link from 'next/link'; import { notFound } from 'next/navigation'; +import { Suspense } from 'react'; interface UpdateArticlePageProps { params: Promise<{ externalId: string }>; } -const UpdateArticlePage = async ({ params }: UpdateArticlePageProps) => { +const ArticleFormContent = async ({ + params, +}: { + params: Promise<{ externalId: string }>; +}) => { const { externalId } = await params; - const result = await getArticleByExternalId(externalId as UUIDv4); if (!result.ok) throw result.error; const article = result.value; if (!article) notFound(); + return ; +}; + +const UpdateArticlePage = ({ params }: UpdateArticlePageProps) => { return (
@@ -31,7 +39,9 @@ const UpdateArticlePage = async ({ params }: UpdateArticlePageProps) => {

Edit Article

- + Loading...
}> + +
);