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
...@@ -52,13 +52,29 @@ const AddPostForm = ({ className }) => { ...@@ -52,13 +52,29 @@ const AddPostForm = ({ className }) => {
</ErrorMessage> </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" onChange={(evt) => setType(evt.target.value)}>
<div className="form-field__wrapper"> <div className="form-field__wrapper">
<div className="radio form-field__control"> <div className="radio form-field__control">
<label> <label>
<input type="radio" name="postType" value="post" defaultChecked /> <input type="radio" name="postType" value="post" defaultChecked />
<span> <span>
Přidat <strong>běžný příspěvek</strong> Přidávám <strong>běžný příspěvek</strong>
</span> </span>
</label> </label>
</div> </div>
...@@ -67,29 +83,13 @@ const AddPostForm = ({ className }) => { ...@@ -67,29 +83,13 @@ const AddPostForm = ({ className }) => {
<label> <label>
<input type="radio" name="postType" value="procedure-proposal" /> <input type="radio" name="postType" value="procedure-proposal" />
<span> <span>
Přidat <strong>návrh postupu</strong> Přidávám <strong>návrh postupu</strong>
</span> </span>
</label> </label>
</div> </div>
</div> </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"> <div className="space-x-4">
<Button <Button
onClick={onAdd} onClick={onAdd}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment