Skip to content

Build your personal knowledge base with Trilium Notes

client: create a placeholder for a color picker menu item

Adorian Doran5291a6856eb9
diff --git a/apps/client/src/menus/custom-items/ColorPickerMenuItem.tsx b/apps/client/src/menus/custom-items/ColorPickerMenuItem.tsx
new file mode 100644
index 0000000000..8828810630
--- /dev/null
+++ b/apps/client/src/menus/custom-items/ColorPickerMenuItem.tsx
@@ -0,0 +1,9 @@
+import FNote from "../../entities/fnote"
+
+export interface ColorPickerMenuItemProps {
+ note: FNote | null;
+}
+
+export default function ColorPickerMenuItem(props: ColorPickerMenuItemProps) {
+ return <span>Color Picker</span>
+}
\ No newline at end of file
diff --git a/apps/client/src/menus/tree_context_menu.ts b/apps/client/src/menus/tree_context_menu.ts
index 7384573d85..b85648a852 100644
--- a/apps/client/src/menus/tree_context_menu.ts
+++ b/apps/client/src/menus/tree_context_menu.ts
@@ -1,3 +1,4 @@
+import ColorPickerMenuItem from "./custom-items/ColorPickerMenuItem.jsx";
import treeService from "../services/tree.js";
import froca from "../services/froca.js";
import clipboard from "../services/clipboard.js";
@@ -255,7 +256,12 @@ export default class TreeContextMenu implements SelectMenuItemEventListener<Tree
keyboardShortcut: "searchInSubtree",
uiIcon: "bx bx-search",
enabled: notSearch && noSelectedNotes
- }
+ },
+
+ {
+ kind: "custom",
+ componentFn: () => ColorPickerMenuItem({note})
+ },
];
return items.filter((row) => row !== null) as MenuItem<TreeCommandNames>[];
}