Mise à jour

This commit is contained in:
Rampeur
2025-08-11 01:14:50 +02:00
parent e1e703c2d8
commit 917b90a26d
43 changed files with 1415 additions and 1241 deletions
+17 -16
View File
@@ -1,29 +1,30 @@
import { Container, Col, Row } from "react-bootstrap";
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;
}>;
params: Promise<{
slug: string;
}>;
};
const Page = async ({ params }: Props) => {
const article = fetchArticle((await params).slug);
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>
return (
<div className="editor-page">
<Container className="page">
<Row>
<Col xs={12} md={{ span: 10, offset: 1 }}>
<Suspense fallback={<p> Chargement...</p>}>
<UpdateArticleEditor defaultValues={article} />
</Suspense>
</Col>
</Row>
</Container>
</div>
</div>
</div>
);
);
};
export default Page;