This commit is contained in:
Daniel Kluge
2022-02-05 00:47:36 +01:00
parent 4ba79f63d0
commit 5485bf3bfa
4 changed files with 14 additions and 8 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
import { NextPage } from "next";
import Link from "next/link";
import { BaseSyntheticEvent, MutableRefObject } from "react";
import { BaseSyntheticEvent, MutableRefObject, useEffect, useRef } from "react";
import styles from "../../styles/REPL/REPLHistory.module.css";
interface REPLHistoryParams {
history: string[];
inputRef: MutableRefObject<HTMLInputElement|undefined>;
inputRef: MutableRefObject<HTMLInputElement|null>;
}
const REPLHistory: NextPage<REPLHistoryParams> = ({history, inputRef}) => {