mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:09:45 +00:00
Развел карточки и пост в разные типы
This commit is contained in:
1 parent
de1e3beee3
commit
64b797bd38
3 files changed
+25
-22
No files matched your search
@@ -22,9 +22,7 @@ export function CategoryPage({ category }: CategoryPageProps) {
|
||||
return (
|
||||
<>
|
||||
{categoryPosts.map((post) => (
|
||||
<WpPost key={post.id} post={post}>
|
||||
<div className="btn">Показать еще</div>
|
||||
</WpPost>
|
||||
<WpPost key={post.id} post={post} />
|
||||
))}
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -6,7 +6,7 @@ import { PageContent, PageHeader } from "@/widgets/WpPost";
|
||||
import { App } from "@/shared/types/app";
|
||||
|
||||
interface WpPostProps {
|
||||
post: App.WpPost;
|
||||
post: App.WpPostPage;
|
||||
children?: ReactNode;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user