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}
defaultChecked={props.checked}
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}
</label>
</div>

View file

@ -62,6 +62,7 @@ function CreateNote() {
<CheckBox
className="justify-self-center lg:justify-self-start"
label="Публичная заметка"
title="Если включено, то заметка будет видна всем пользователям"
id="public"
onClick={() => {
setPublicState(!publicState);