mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
e1e9a5ed96
* dev: Helpers * dev: views * dev: Chart views Month, Year and Day * dev: Chart Workflow updates * update: scroll functionality implementation * update: data vaidation * update: date renders and issue filter in the month view * update: new date render month view * update: scroll enabled left in chart * update: Item render from the date it created. * update: width implementation in chat view * dev: chart render functionality in the gantt chart * update: month view fix * dev: chart render issues resolved * update: fixed allchat views * update: updated week view default values * update: integrated chart view in issues * update: grabble and sidebar logic impleemntation and integrated gantt in issues * update: Preview gantt chart in month view * fix: mutation in gantt chart after creating a new issue * chore: cycles and modules list gantt chart * update: Ui changes on gantt view * fix: gantt chart height, chore: remove link from issue --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
35 lines
794 B
TypeScript
35 lines
794 B
TypeScript
import { FC } from "react";
|
|
// components
|
|
import { ChartViewRoot } from "./chart";
|
|
// context
|
|
import { ChartContextProvider } from "./contexts";
|
|
|
|
type GanttChartRootProps = {
|
|
title: null | string;
|
|
loaderTitle: string;
|
|
blocks: any;
|
|
blockUpdateHandler: (data: any) => void;
|
|
sidebarBlockRender: FC<any>;
|
|
blockRender: FC<any>;
|
|
};
|
|
|
|
export const GanttChartRoot: FC<GanttChartRootProps> = ({
|
|
title = null,
|
|
blocks,
|
|
loaderTitle = "blocks",
|
|
blockUpdateHandler,
|
|
sidebarBlockRender,
|
|
blockRender,
|
|
}) => (
|
|
<ChartContextProvider>
|
|
<ChartViewRoot
|
|
title={title}
|
|
blocks={blocks}
|
|
loaderTitle={loaderTitle}
|
|
blockUpdateHandler={blockUpdateHandler}
|
|
sidebarBlockRender={sidebarBlockRender}
|
|
blockRender={blockRender}
|
|
/>
|
|
</ChartContextProvider>
|
|
);
|