style: new style of markdown editor

This commit is contained in:
2023-01-12 15:40:46 +01:00
parent 8a911f5ddb
commit 9d8689da36
3 changed files with 111 additions and 40 deletions
+9 -5
View File
@@ -36,19 +36,23 @@ const CreateProblem = ({}) => {
}
return (
<>
<div class="problem-title">
<label>Titolo</label>
<div class="create-problem-form">
<div class="col">
<label for="create-problem-title">Titolo</label>
<input
type="text"
id="create-problem-title"
value={title}
onInput={e => setTitle(e.target instanceof HTMLInputElement ? e.target.value : '')}
placeholder="Problema..."
/>
</div>
<MarkdownEditor placeholder="Scrivi un nuovo problema..." {...{ source, setSource }} />
<div class="col">
<label>Testo</label>
<MarkdownEditor placeholder="Scrivi un nuovo problema..." {...{ source, setSource }} />
</div>
<button onClick={handleCreateProblem}>Aggiungi Problema</button>
</>
</div>
)
}