Skip to content

Commit 11e0815

Browse files
committed
refactor: replace Folder.jsx with Folder.astro
1 parent 36f92a9 commit 11e0815

File tree

2 files changed

+2
-132
lines changed

2 files changed

+2
-132
lines changed

src/components/Folder.jsx

Lines changed: 0 additions & 130 deletions
This file was deleted.

src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import BaseLayout from '../layouts/BaseLayout.astro';
33
import { getSheetData } from '../lib/getSheetData.js';
4-
import Folder from '../components/Folder.jsx';
4+
import Folder from '../components/Folder.astro';
55
66
const rows = await getSheetData();
77
@@ -18,6 +18,6 @@ const grouped = rows.reduce((acc, row) => {
1818
<h1 style="margin-bottom:2rem; font-size:2.5rem; font-weight:700; color:#FFFFFF;">Latest Lessons</h1>
1919

2020
{Object.entries(grouped).map(([category, posts]) => (
21-
<Folder client:load category={category} posts={posts} />
21+
<Folder category={category} posts={posts} />
2222
))}
2323
</BaseLayout>

0 commit comments

Comments
 (0)