refactor: gantt sidebar (#2705)
* refactor: gantt sidebar * fix: exception error fix: file placement * refactor: not passing sidebar block as props
This commit is contained in:
parent
79df59f618
commit
34bccd7e06
14 changed files with 232 additions and 49 deletions
|
|
@ -6,8 +6,13 @@ import { useMobxStore } from "lib/mobx/store-provider";
|
|||
// hooks
|
||||
import useProjectDetails from "hooks/use-project-details";
|
||||
// components
|
||||
import { GanttChartRoot, IBlockUpdateData, renderIssueBlocksStructure } from "components/gantt-chart";
|
||||
import { IssueGanttBlock, IssueGanttSidebarBlock } from "components/issues";
|
||||
import { IssueGanttBlock } from "components/issues";
|
||||
import {
|
||||
GanttChartRoot,
|
||||
IBlockUpdateData,
|
||||
renderIssueBlocksStructure,
|
||||
ProjectViewGanttSidebar,
|
||||
} from "components/gantt-chart";
|
||||
// types
|
||||
import { IIssueUnGroupedStructure } from "store/issue";
|
||||
import { IIssue } from "types";
|
||||
|
|
@ -42,7 +47,7 @@ export const ProjectViewGanttLayout: React.FC = observer(() => {
|
|||
blocks={issues ? renderIssueBlocksStructure(issues as IIssueUnGroupedStructure) : null}
|
||||
blockUpdateHandler={updateIssue}
|
||||
blockToRender={(data: IIssue) => <IssueGanttBlock data={data} handleIssue={updateIssue} />}
|
||||
sidebarBlockToRender={(data: IIssue) => <IssueGanttSidebarBlock data={data} handleIssue={updateIssue} />}
|
||||
sidebarToRender={(props) => <ProjectViewGanttSidebar {...props} />}
|
||||
enableBlockLeftResize={isAllowed}
|
||||
enableBlockRightResize={isAllowed}
|
||||
enableBlockMove={isAllowed}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue