From 49289e6d5dab12b5cb176cb42bfb2940aeb69787 Mon Sep 17 00:00:00 2001 From: JonasHiltl Date: Fri, 25 Oct 2024 18:46:01 +0200 Subject: [PATCH] create theme option --- widget/next/src/Changelog.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/widget/next/src/Changelog.tsx b/widget/next/src/Changelog.tsx index 2b38c00..27e232c 100644 --- a/widget/next/src/Changelog.tsx +++ b/widget/next/src/Changelog.tsx @@ -7,6 +7,7 @@ type ChangelogProps = { pageSize?: number // your own hosted openchangelog instance, defaults to https://openchangelog.com baseUrl?: string + theme?: "dark" | "light" } async function fetchChangelog(args: ChangelogProps): Promise { @@ -37,6 +38,10 @@ export async function Changelog(props: ChangelogProps) { const html = await fetchChangelog(props) return ( -
- ); + <> +
+
+
+ + ) } \ No newline at end of file