first commit
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
import { getPosts } from '@/shared/config/api/testApi';
|
||||
import Welcome from '@/widgets/welcome';
|
||||
import { subCategoriesData } from '@/features/category/lib/data';
|
||||
import { CategoryCarousel } from '@/widgets/categories/ui/category-carousel';
|
||||
import Welcome from '@/widgets/welcome/ui';
|
||||
|
||||
export default async function Home() {
|
||||
const res = await getPosts({ _limit: 1 });
|
||||
console.log('SSR res', res.data);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Welcome />
|
||||
{subCategoriesData.slice(0, 6).map((e) => (
|
||||
<CategoryCarousel category={e} key={e.id} />
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user