client: refactor

This commit is contained in:
Adorian Doran 2025-11-06 08:26:21 +02:00
parent 30c1708979
commit 9011d648b5

View File

@ -64,9 +64,8 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not
iconAction>
{isReadOnly && <>
<FormListItem icon="bx bx-pencil" onClick={() => enableEditing()}>
{t("read-only-info.edit-note")}
</FormListItem>
<CommandItem icon="bx bx-pencil" text={t("read-only-info.edit-note")}
command={() => enableEditing()} />
<FormDropdownDivider />
</>}