mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
fix: hide stories when no articles are published
This commit is contained in:
@@ -18,7 +18,7 @@ import Navbar from 'components/layout/navbar';
|
||||
import NewsletterSignup from 'components/layout/newsletter-signup';
|
||||
import SagyobarPreview from 'components/layout/sagyobar-preview';
|
||||
import Shoplist from 'components/layout/shoplist';
|
||||
import Stories from 'components/layout/stories';
|
||||
import StoriesPreview from 'components/layout/stories-preview';
|
||||
import { BLOG_HANDLE } from 'lib/constants';
|
||||
import { getCart } from 'lib/shopify';
|
||||
import { cookies } from 'next/headers';
|
||||
@@ -132,7 +132,7 @@ export default async function HomePage({
|
||||
</div>
|
||||
|
||||
<div className="relative">
|
||||
<Stories handle={BLOG_HANDLE} articles={3} locale={locale} more />
|
||||
<StoriesPreview handle={BLOG_HANDLE} articles={3} locale={locale} more />
|
||||
</div>
|
||||
|
||||
<div className="relative">
|
||||
|
Reference in New Issue
Block a user