Skip to content

Build your personal knowledge base with Trilium Notes

client: refactor

Adorian Doran9011d648b58e
diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsx
index 3b396e0706..466fc12a17 100644
--- a/apps/client/src/widgets/ribbon/NoteActions.tsx
+++ b/apps/client/src/widgets/ribbon/NoteActions.tsx
@@ -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 />
</>}