mirror of
https://github.com/artegoser/AnoPaper.git
synced 2024-12-23 17:33:44 +03:00
feat: update public state
This commit is contained in:
parent
4a260de4dd
commit
b6b7de4773
1 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,7 @@ import ReactMarkdown from "react-markdown";
|
|||
|
||||
function CreateNote() {
|
||||
const [preview, setPreview] = useState(false);
|
||||
const [publicState, setPublicState] = useState(true);
|
||||
const [text, setText] = useState("");
|
||||
|
||||
return (
|
||||
|
@ -65,7 +66,9 @@ function CreateNote() {
|
|||
className="justify-self-center lg:justify-self-start"
|
||||
label="Публичная заметка"
|
||||
id="public"
|
||||
onClick={""}
|
||||
onClick={() => {
|
||||
setPublicState(!publicState);
|
||||
}}
|
||||
checked
|
||||
/>
|
||||
<div className="justify-self-center lg:justify-self-end">
|
||||
|
|
Loading…
Add table
Reference in a new issue