style: new style of markdown editor
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user