This commit is contained in:
Marta Kowalska
2025-10-22 08:13:59 +00:00
commit 80ca059fb8
162 changed files with 16816 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import { useMemo, useState } from 'react';
import { getTypedData, taskTypes } from '../data';
import { Gantt, Editor } from '../../src/';
import './GanttTaskTypes.css';
function GanttTaskTypes(props) {
const { skinSettings } = props;
const data = useMemo(() => getTypedData(), []);
const [api, setApi] = useState(null);
return (
<div className="wx-I1glfWSB demo">
<Gantt
init={setApi}
{...skinSettings}
tasks={data.tasks}
links={data.links}
scales={data.scales}
taskTypes={taskTypes}
/>
{api && <Editor api={api} />}
</div>
);
}
export default GanttTaskTypes;