From 5df5ec12134b85e9c743ffd5b4da35aa0fed04e6 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 16 Mar 2025 00:11:29 +0900 Subject: feat(frontend): show non-highlighted code until syntax highlighting complete --- frontend/app/components/Gaming/CodeBlock.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'frontend/app/components/Gaming/CodeBlock.tsx') diff --git a/frontend/app/components/Gaming/CodeBlock.tsx b/frontend/app/components/Gaming/CodeBlock.tsx index 36ccae1..16ff84e 100644 --- a/frontend/app/components/Gaming/CodeBlock.tsx +++ b/frontend/app/components/Gaming/CodeBlock.tsx @@ -29,7 +29,9 @@ export default function CodeBlock({ code, language }: Props) { return (
-			{highlightedCode === null ? null : (
+			{highlightedCode === null ? (
+				{code}
+			) : (
 				
 			)}
 		
-- cgit v1.2.3-70-g09d2