Ajout des fichiers de l'application
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import { UpdateArticleEditor } from "@/modules/features/article/components/articleEditor";
|
||||
import { fetchArticle } from "@/modules/features/article/fetch/fetchArticle";
|
||||
import { Suspense } from "react";
|
||||
|
||||
type Props = {
|
||||
params: Promise<{
|
||||
slug: string;
|
||||
}>;
|
||||
};
|
||||
|
||||
const Page = async ({ params }: Props) => {
|
||||
const article = fetchArticle((await params).slug);
|
||||
|
||||
return (
|
||||
<div className="editor-page">
|
||||
<div className="container page">
|
||||
<div className="row">
|
||||
<div className="col-md-10 offset-md-1 col-xs-12">
|
||||
<Suspense fallback={<p>⌛Loading...</p>}>
|
||||
<UpdateArticleEditor defaultValues={article} />
|
||||
</Suspense>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page;
|
||||
Reference in New Issue
Block a user