mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:39:45 +00:00
Пересобрал компоненты карточек и CardList, обновил импорты
This commit is contained in:
1 parent
26018016e1
commit
05f7a7a1d7
12 files changed
+194
-193
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user