From deca77889cfc8eaa4065694f113525eda365e5d0 Mon Sep 17 00:00:00 2001
From: Nate Sesti <sestinj@gmail.com>
Date: Sun, 18 Jun 2023 18:57:51 -0700
Subject: correctly get string from children

---
 extension/react-app/src/components/StyledCode.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'extension/react-app/src/components/StyledCode.tsx')

diff --git a/extension/react-app/src/components/StyledCode.tsx b/extension/react-app/src/components/StyledCode.tsx
index 2f8428dc..66135d65 100644
--- a/extension/react-app/src/components/StyledCode.tsx
+++ b/extension/react-app/src/components/StyledCode.tsx
@@ -2,13 +2,13 @@ import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
 import { synthwave84 } from "react-syntax-highlighter/dist/esm/styles/prism";
 
 interface StyledCodeProps {
-    children: string;
+  children: string;
 }
 
-const StyledCode = (props: (StyledCodeProps)) => (
+const StyledCode = (props: StyledCodeProps) => (
   <SyntaxHighlighter style={synthwave84}>
-    {props.children}
+    {(props.children as any).props.children}
   </SyntaxHighlighter>
 );
 
-export default StyledCode;
\ No newline at end of file
+export default StyledCode;
-- 
cgit v1.2.3-70-g09d2

