Skip to content
Snippets Groups Projects
Commit 6b2601e3 authored by xaralis's avatar xaralis
Browse files

feat: move post/proposal choice closer to CTA

parent 089a8af7
No related branches found
No related tags found
No related merge requests found
Pipeline #1956 passed
......@@ -52,13 +52,29 @@ const AddPostForm = ({ className }) => {
</ErrorMessage>
)}
<MarkdownEditor
value={text}
onChange={onTextInput}
error={
noTextError
? "Před přidáním příspěvku nezapomeňte vyplnit jeho obsah."
: null
}
placeholder="Vyplňte text vašeho příspěvku"
toolbarCommands={[
["header", "bold", "italic", "strikethrough"],
["link", "quote", "image"],
["unordered-list", "ordered-list"],
]}
/>
<div className="form-field" onChange={(evt) => setType(evt.target.value)}>
<div className="form-field__wrapper">
<div className="radio form-field__control">
<label>
<input type="radio" name="postType" value="post" defaultChecked />
<span>
Přidat <strong>běžný příspěvek</strong>
Přidávám <strong>běžný příspěvek</strong>
</span>
</label>
</div>
......@@ -67,29 +83,13 @@ const AddPostForm = ({ className }) => {
<label>
<input type="radio" name="postType" value="procedure-proposal" />
<span>
Přidat <strong>návrh postupu</strong>
Přidávám <strong>návrh postupu</strong>
</span>
</label>
</div>
</div>
</div>
<MarkdownEditor
value={text}
onChange={onTextInput}
error={
noTextError
? "Před přidáním příspěvku nezapomeňte vyplnit jeho obsah."
: null
}
placeholder="Vyplňte text vašeho příspěvku"
toolbarCommands={[
["header", "bold", "italic", "strikethrough"],
["link", "quote", "image"],
["unordered-list", "ordered-list"],
]}
/>
<div className="space-x-4">
<Button
onClick={onAdd}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment