Fix error that occurs when displaying articles at the bottom of the page
Replaced the non-existent `ArticleCard` component with the existing `BlogCard` component in the `home.tsx` file to resolve a runtime error. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: cd70a2d4-954c-44af-a0a2-96cf1189c3f5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/517dfa7b-26ac-463d-a6e1-a58c6df97188/nFw7xof Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
c47c743c96
commit
3097a76b33
@ -543,7 +543,7 @@ export default function Home() {
|
||||
{ type: "widget", el: <RecipeWidget key="bottom-recipe" /> },
|
||||
...bottomArticles.map((a) => ({
|
||||
type: "article" as const,
|
||||
el: <ArticleCard key={`bottom-art-${a.id}`} article={a} focalPoint={focalPoints[a.imageUrl || ""]} />,
|
||||
el: <BlogCard key={`bottom-art-${a.id}`} article={a} focalPoints={focalPoints} />,
|
||||
})),
|
||||
{ type: "widget", el: <PhotoGalleryWidget key="bottom-gallery" /> },
|
||||
{ type: "ad", el: <div key="ad-bottom-1"><ArticleCardAd /></div> },
|
||||
|
||||
Loading…
Reference in New Issue
Block a user