mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:49:45 +00:00
перенесла отображение команды и фотогалереи в aboutUs
This commit is contained in:
1 parent
880e0be5e9
commit
c563fa077f
2 files changed
+8
-12
No files matched your search
@@ -1,6 +1,11 @@
|
|||||||
import { CategoryPage } from "@/widgets/CategoryPage/CategoryPage";
|
import { CategoryPage } from "@/widgets/CategoryPage/CategoryPage";
|
||||||
|
import Team from "@/widgets/Team";
|
||||||
|
import PhotoGallery from "@/widgets/PhotoGallery";
|
||||||
|
|
||||||
export default function AboutUs() {
|
export default function AboutUs() {
|
||||||
return <CategoryPage category="aboutus" />;
|
return <>
|
||||||
|
<CategoryPage category="aboutus" />
|
||||||
|
< Team />
|
||||||
|
< PhotoGallery />
|
||||||
|
</>
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,5 @@
|
|||||||
import { usePosts } from "@/modules/posts/hooks/usePosts";
|
import { usePosts } from "@/modules/posts/hooks/usePosts";
|
||||||
import { PagePost } from "@/widgets/PostPage";
|
import { PagePost } from "@/widgets/PostPage";
|
||||||
import Team from "../Team";
|
|
||||||
import PhotoGallery from "../PhotoGallery";
|
|
||||||
|
|
||||||
|
|
||||||
interface CategoryPageProps {
|
interface CategoryPageProps {
|
||||||
category: string;
|
category: string;
|
||||||
@@ -28,13 +25,7 @@ export function CategoryPage({ category }: CategoryPageProps) {
|
|||||||
<PagePost key={post.id} post={post}>
|
<PagePost key={post.id} post={post}>
|
||||||
{/* <div className="btn">Показать еще</div> */}
|
{/* <div className="btn">Показать еще</div> */}
|
||||||
</PagePost>
|
</PagePost>
|
||||||
))}
|
))}
|
||||||
{category === "aboutus" && <>
|
|
||||||
<Team />
|
|
||||||
<PhotoGallery />
|
|
||||||
</>
|
|
||||||
}
|
|
||||||
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user