diff --git a/components/changelog/ChangelogIndex.tsx b/components/changelog/ChangelogIndex.tsx index 398c58a..3e6d04b 100644 --- a/components/changelog/ChangelogIndex.tsx +++ b/components/changelog/ChangelogIndex.tsx @@ -1,78 +1,87 @@ import { getPagesUnderRoute } from 'nextra/context' -import Link from 'next/link' +// import Link from 'next/link' import Image from 'next/image' import { type Page } from 'nextra' import { Video } from '../Video' +import * as Accordion from '@radix-ui/react-accordion' export const ChangelogIndex = ({ maxItems }: { maxItems?: number }) => { return ( -
- {(getPagesUnderRoute('/changelog') as Array) - .slice(0, maxItems) - .sort( - (a, b) => new Date(b.frontMatter.date).getTime() - new Date(a.frontMatter.date).getTime(), - ) - .map((page, i) => ( -
-
- {page.frontMatter?.date - ? new Date(page.frontMatter.date).toLocaleDateString('en-US', { - year: 'numeric', - month: 'long', - day: 'numeric', - timeZone: 'UTC', - }) - : null} + +
+ {(getPagesUnderRoute('/changelog') as Array) + .slice(0, maxItems) + .sort( + (a, b) => + new Date(b.frontMatter.date).getTime() - new Date(a.frontMatter.date).getTime(), + ) + .map((page, i) => ( +
+
+ {page.frontMatter?.date + ? new Date(page.frontMatter.date).toLocaleDateString('en-US', { + year: 'numeric', + month: 'long', + day: 'numeric', + timeZone: 'UTC', + }) + : null} +
+
+ + + {page.frontMatter?.ogVideo ? ( + + +
{JSON.stringify(page)}
+
+
+
-
- - {page.frontMatter?.ogVideo ? ( -
-
- ))} -
+ ))} +
+ ) }