mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
fix(docs): Remove duplicate sections in guides.jsx (#24595)
### What does this PR do?
This PR fixes an issue on the Guides page where duplicate sections were
being displayed. The problem was caused by a misplaced return statement
and a duplicated JSX block introduced in commit
[1606a9f24e](https://github.com/oven-sh/bun/blob/1606a9f24e/docs/snippets/guides.jsx#L504-L514).
This commit is contained in:
@@ -501,34 +501,6 @@ export const GuidesList = () => {
|
||||
))}
|
||||
</Columns>
|
||||
</div>
|
||||
return (
|
||||
<div id="guides-list">
|
||||
{/* Featured cards */}
|
||||
<div className="mb-12">
|
||||
<h2 className="text-2xl font-bold mb-6">Featured</h2>
|
||||
<Columns cols={3}>
|
||||
{guidesData.featured.map(g => (
|
||||
<Card key={g.href} title={g.title} href={g.href} cta={g.cta} />
|
||||
))}
|
||||
</Columns>
|
||||
</div>
|
||||
|
||||
{/* All guides organized by category */}
|
||||
<div className="mb-8">
|
||||
<h2 className="text-2xl font-bold mb-6">All Guides</h2>
|
||||
{guidesData.categories.map(category => (
|
||||
<div key={category.key} className="mb-8">
|
||||
<h3 className="text-xl font-semibold mb-4 flex items-center gap-2">{category.title}</h3>
|
||||
<Columns cols={3}>
|
||||
{category.items.map(guide => (
|
||||
<Card key={guide.href} title={guide.title} description=" " href={guide.href} cta="" />
|
||||
))}
|
||||
</Columns>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
{/* All guides organized by category */}
|
||||
<div className="mb-8">
|
||||
<h2 className="text-2xl font-bold mb-6">All Guides</h2>
|
||||
|
||||
Reference in New Issue
Block a user