This commit is contained in:
Marta Kowalska
2025-12-22 20:22:30 +00:00
parent d4429300aa
commit bb81e7a336
90 changed files with 3676 additions and 1828 deletions
+2 -7
View File
@@ -1,11 +1,6 @@
import { useState, useMemo } from 'react';
import { getData } from '../data';
import {
Gantt,
Editor,
defaultEditorItems,
registerEditorItem,
} from '../../src';
import { Gantt, Editor, getEditorItems, registerEditorItem } from '../../src';
import { Comments } from '@svar-ui/react-comments';
registerEditorItem('comments', Comments);
@@ -47,7 +42,7 @@ function GanttEditorComments(props) {
const [api, setApi] = useState();
const keys = useMemo(() => ['text', 'details'], []);
const items = useMemo(() => {
const items = defaultEditorItems.filter((op) => keys.indexOf(op.key) >= 0);
const items = getEditorItems().filter((op) => keys.indexOf(op.key) >= 0);
items.push({
key: 'comments',
comp: 'comments',