feat: title

This commit is contained in:
Artemy 2022-10-18 18:51:50 +03:00
parent dfd29afdc5
commit 77ece82c9a
2 changed files with 7 additions and 1 deletions

View file

@ -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>

View file

@ -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);