tweak: initial input value

This commit is contained in:
NunoSempere 2022-05-02 18:16:14 -04:00
parent 7ae6d35105
commit 5d07fbd383

View File

@ -74,7 +74,7 @@ export default function ComparisonView({ listOfElementsForView }) {
initialPosList[initialPosList.length - 2], initialPosList[initialPosList.length - 2],
initialPosList[initialPosList.length - 1], initialPosList[initialPosList.length - 1],
]; ];
let initialInputValue = 1; let initialInputValue = "x to y";
let initialReasoning = ""; let initialReasoning = "";
let initialBinaryComparisons = []; let initialBinaryComparisons = [];
let initialQuantitativeComparisons = []; let initialQuantitativeComparisons = [];
@ -466,7 +466,11 @@ export default function ComparisonView({ listOfElementsForView }) {
{"Notes and reasoning:"} {"Notes and reasoning:"}
<textarea <textarea
className="mt-2 px-3 py-4 placeholder-blueGray-300 text-blueGray-600 relative bg-white bg-white rounded text-base border-0 shadow outline-none focus:outline-none focus:ring w-full" className="mt-2 px-3 py-4 placeholder-blueGray-300 text-blueGray-600 relative bg-white bg-white rounded text-base border-0 shadow outline-none focus:outline-none focus:ring w-full"
placeholder={numSteps == 0 ? "Please write your name here if you want QURI to be able to identify your answers later" : ""} placeholder={
numSteps == 0
? "Please write your name here if you want QURI to be able to identify your answers later"
: ""
}
value={reasoning} value={reasoning}
onChange={(event) => setReasoning(event.target.value)} onChange={(event) => setReasoning(event.target.value)}
/> />