-
-
- } removeEmojiAction={handleRemoveEmoji}/>
+
+
+ )
+ }
+ removeEmojiAction={handleRemoveEmoji}
+ />
{node.isEditing ? (
) : (
- node.data.name || 'untitled'
+ node.data.name || "untitled"
)}
@@ -163,15 +172,19 @@ function CreateNode({ node }: { node: NodeApi
}) {
const [tree] = useAtom(treeApiAtom);
function handleCreate() {
- tree?.create({ type: 'internal', parentId: node.id, index: 0 });
+ tree?.create({ type: "internal", parentId: node.id, index: 0 });
}
return (
- {
- e.preventDefault();
- e.stopPropagation();
- handleCreate();
- }}>
+ {
+ e.preventDefault();
+ e.stopPropagation();
+ handleCreate();
+ }}
+ >
);
@@ -187,10 +200,14 @@ function NodeMenu({ node }: { node: NodeApi }) {
return (