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);