mirror of
https://github.com/artegoser/AnoPaper.git
synced 2024-11-22 11:56:21 +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() {
|
function CreateNote() {
|
||||||
const [preview, setPreview] = useState(false);
|
const [preview, setPreview] = useState(false);
|
||||||
|
const [publicState, setPublicState] = useState(true);
|
||||||
const [text, setText] = useState("");
|
const [text, setText] = useState("");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -65,7 +66,9 @@ function CreateNote() {
|
||||||
className="justify-self-center lg:justify-self-start"
|
className="justify-self-center lg:justify-self-start"
|
||||||
label="Публичная заметка"
|
label="Публичная заметка"
|
||||||
id="public"
|
id="public"
|
||||||
onClick={""}
|
onClick={() => {
|
||||||
|
setPublicState(!publicState);
|
||||||
|
}}
|
||||||
checked
|
checked
|
||||||
/>
|
/>
|
||||||
<div className="justify-self-center lg:justify-self-end">
|
<div className="justify-self-center lg:justify-self-end">
|
||||||
|
|
Loading…
Add table
Reference in a new issue