create page: minor changes

This commit is contained in:
mantikoros 2022-01-03 13:00:24 -06:00
parent 24e873b6de
commit 44f44272ff

View File

@ -101,7 +101,9 @@ export default function NewContract() {
className="input input-bordered input-md" className="input input-bordered input-md"
min={1} min={1}
max={99} max={99}
onChange={(e) => setInitialProb(parseInt(e.target.value))} onChange={(e) =>
setInitialProb(parseInt(e.target.value.substring(0, 2)))
}
/> />
<span>%</span> <span>%</span>
</label> </label>
@ -158,11 +160,10 @@ export default function NewContract() {
/> />
</div> </div>
<label> <label>
{closeDate && ( <span className="label-text text-gray-400 ml-1">
<span className="label-text text-gray-400 ml-1"> No new trades will be allowed after{' '}
No new trades will be allowed after {formattedCloseTime} {closeDate ? formattedCloseTime : 'this time'}
</span> </span>
)}
</label> </label>
</div> </div>
</div> </div>