mirror of
https://github.com/artegoser/AnoPaper.git
synced 2024-11-22 11:56:21 +03:00
feat: title
This commit is contained in:
parent
dfd29afdc5
commit
77ece82c9a
2 changed files with 7 additions and 1 deletions
|
@ -7,8 +7,13 @@ function CheckBox(props) {
|
||||||
id={props.id}
|
id={props.id}
|
||||||
defaultChecked={props.checked}
|
defaultChecked={props.checked}
|
||||||
onClick={props.onClick}
|
onClick={props.onClick}
|
||||||
|
title={props.title}
|
||||||
/>
|
/>
|
||||||
<label className="form-check-label inline-block" htmlFor={props.id}>
|
<label
|
||||||
|
title={props.title}
|
||||||
|
className="form-check-label inline-block"
|
||||||
|
htmlFor={props.id}
|
||||||
|
>
|
||||||
{props.label}
|
{props.label}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -62,6 +62,7 @@ function CreateNote() {
|
||||||
<CheckBox
|
<CheckBox
|
||||||
className="justify-self-center lg:justify-self-start"
|
className="justify-self-center lg:justify-self-start"
|
||||||
label="Публичная заметка"
|
label="Публичная заметка"
|
||||||
|
title="Если включено, то заметка будет видна всем пользователям"
|
||||||
id="public"
|
id="public"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setPublicState(!publicState);
|
setPublicState(!publicState);
|
||||||
|
|
Loading…
Add table
Reference in a new issue