v2.4.3
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useState, useContext, useMemo } from 'react';
|
||||
import { getData } from '../data';
|
||||
import { Gantt, ContextMenu, Editor, defaultMenuOptions } from '../../src/';
|
||||
import { Gantt, ContextMenu, Editor, getMenuOptions } from '../../src/';
|
||||
import { context } from '@svar-ui/react-core';
|
||||
|
||||
export default function ContextMenuOptions({ skinSettings }) {
|
||||
@@ -17,9 +17,7 @@ export default function ContextMenuOptions({ skinSettings }) {
|
||||
const [options] = useState(() => {
|
||||
const ids = ['cut-task', 'copy-task', 'paste-task', 'delete-task'];
|
||||
let arr = [{ id: 'add-task:after', text: ' Add below', icon: 'wxi-plus' }];
|
||||
arr = arr.concat(
|
||||
defaultMenuOptions.filter((op) => ids.indexOf(op.id) >= 0),
|
||||
);
|
||||
arr = arr.concat(getMenuOptions().filter((op) => ids.indexOf(op.id) >= 0));
|
||||
arr.push({
|
||||
id: 'my-action',
|
||||
text: 'My action',
|
||||
|
||||
Reference in New Issue
Block a user