From e52c5eba27f58b173f710ab1e65ae8c07a2d8e98 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Wed, 10 Aug 2022 16:55:46 +0200 Subject: [PATCH] Add keys to links --- components/REPL/REPLHistory.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/REPL/REPLHistory.tsx b/components/REPL/REPLHistory.tsx index d554a0f..a980fe7 100644 --- a/components/REPL/REPLHistory.tsx +++ b/components/REPL/REPLHistory.tsx @@ -39,7 +39,7 @@ const REPLHistory: NextPage = ({history, inputRef}) => { const isLocal = linkHref.startsWith("https://c0ntroller.de") || linkHref.startsWith("/") || linkHref.startsWith("#"); result.push(line.substring(0, idxStart)); - result.push({linkText}); + result.push({linkText}); line = line.substring(idxEnd+1); idxStart = line.indexOf("#{"); @@ -52,7 +52,7 @@ const REPLHistory: NextPage = ({history, inputRef}) => { return result; }; - const makeCommands = (line: string|JSX.Element, indexKey: number) => { + const makeCommands = (line: string|JSX.Element) => { if (typeof line !== "string") return line; let idxStart = line.indexOf("%{"); @@ -65,7 +65,7 @@ const REPLHistory: NextPage = ({history, inputRef}) => { const cmdText = line.substring(idxStart+2, idxEnd); result.push(line.substring(0, idxStart)); - result.push({cmdText}); + result.push({cmdText}); line = line.substring(idxEnd+1);