Use textareas for previous questions

This commit is contained in:
Daniel O'Connell
2023-09-30 18:13:56 +02:00
parent 710d7661cd
commit 42108e8dfc
2 changed files with 4 additions and 6 deletions
+3 -5
View File
@@ -9,14 +9,12 @@ import { ShowAssistantEntry } from "./assistant";
import { GlossarySpan } from "./glossary";
import Image from "next/image";
import logo from "../logo.svg";
import TextareaAutosize from 'react-textarea-autosize';
export const User = ({ entry }: { entry: UserEntry }) => {
return (
<li>
<p className="border border-gray-300 px-1 text-right">
{" "}
{entry.content}{" "}
</p>
<li className="flex mt-1 mb-2">
<TextareaAutosize className="border border-gray-300 px-1 flex-1 resize-none" value={entry.content} />
</li>
);
};
+1 -1
View File
@@ -121,7 +121,7 @@ const Home: NextPage = () => {
case "followups":
last_entry = <>
<ShowAssistantEntry entry={current} />
<p>Loading: Checking for followups...</p>
<p>Checking for followups...</p>
</>;
break;
}