From 555ad1c839fb4713d5b062f5c388812913b24f69 Mon Sep 17 00:00:00 2001 From: Dmitry Maslennikov Date: Thu, 18 Jan 2024 14:46:26 +0300 Subject: [PATCH] One more try to fix revealjs build --- src/components/reveal.tsx | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/reveal.tsx b/src/components/reveal.tsx index 8910291..48aa26a 100644 --- a/src/components/reveal.tsx +++ b/src/components/reveal.tsx @@ -3,7 +3,7 @@ import { type PropsWithChildren, type ReactElement, useEffect, useRef } from 're import Reveal from 'reveal.js' import RevealNotes from 'reveal.js/plugin/notes/notes' -export function RevealSlides ({ children }: PropsWithChildren): ReactElement { +function RevealSlidesInner ({ children }: PropsWithChildren): ReactElement { const ref = useRef(null) useEffect(() => { @@ -17,15 +17,17 @@ export function RevealSlides ({ children }: PropsWithChildren): ReactElement { return () => { r.destroy() } }, [ref]) - return - {() => { - return
-
-
- {children} -
-
+ return
+
+
+ {children}
- }} +
+
+} + +export function RevealSlides ({ children }: PropsWithChildren): ReactElement { + return + {() => { children }} }