Пересобрал компоненты карточек и CardList, обновил импорты

This commit is contained in:
ifraimka1 committed 2025-04-15 15:37:34 +03:00
1 parent 26018016e1
commit 05f7a7a1d7
12 files changed
+194 -193

No files matched your search

+4 -4
View File
@@ -1,9 +1,9 @@
import { usePostById } from "@/modules";
import { WpPost } from "@/widgets/WpPost";
import { useParams } from "react-router-dom";
import { ProjectsList } from "../CardListPages/CardListPages";
import { ProjectsList } from "@/widgets/CardList/CardList";
function PostPage() {
function WpPostPage() {
const params = useParams();
const postId = params.id ? parseInt(params.id, 10) : null;
@@ -28,11 +28,11 @@ function PostPage() {
return (<>
{post &&
<>
<WpPost post={post} isLab={false} />
<WpPost post={post} />
{post?.categories?.includes("labs") && <ProjectsList tag={post?.tag || -1} />}
</>
}
</>);
}
export default PostPage;
export default WpPostPage;