From d4d1c2bbabfcec3c62767e614c9d67f516938af2 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 26 Aug 2022 01:18:28 -0400 Subject: basic patch notes viewer, lazy-load settings and store, build frontend as esmodule, add lazy-loaded react-markdown, backend changes to accomodate ESModule frontend --- .../src/components/patchnotes/InlinePatchNotes.tsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 frontend/src/components/patchnotes/InlinePatchNotes.tsx (limited to 'frontend/src/components/patchnotes') diff --git a/frontend/src/components/patchnotes/InlinePatchNotes.tsx b/frontend/src/components/patchnotes/InlinePatchNotes.tsx new file mode 100644 index 00000000..84861c04 --- /dev/null +++ b/frontend/src/components/patchnotes/InlinePatchNotes.tsx @@ -0,0 +1,21 @@ +import { Focusable, updaterFieldClasses } from 'decky-frontend-lib'; +import { FunctionComponent, ReactNode } from 'react'; + +interface InlinePatchNotesProps { + date: ReactNode; + title: string; + children: ReactNode; + onClick?: () => void; +} + +const InlinePatchNotes: FunctionComponent = ({ date, title, children, onClick }) => { + return ( + +
{date}
+
{title}
+
{children}
+
+ ); +}; + +export default InlinePatchNotes; -- cgit v1.2.3