2023-05-20 12:00:15 +00:00
|
|
|
import { useRouter } from "next/router";
|
|
|
|
|
|
|
|
// components
|
|
|
|
import { CycleIssuesGanttChartView } from "components/cycles";
|
2023-07-23 16:44:41 +00:00
|
|
|
import { IssueGanttChartView } from "components/issues";
|
2023-05-20 12:00:15 +00:00
|
|
|
import { ModuleIssuesGanttChartView } from "components/modules";
|
|
|
|
import { ViewIssuesGanttChartView } from "components/views";
|
|
|
|
|
|
|
|
export const GanttChartView = () => {
|
|
|
|
const router = useRouter();
|
|
|
|
const { cycleId, moduleId, viewId } = router.query;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
{cycleId ? (
|
|
|
|
<CycleIssuesGanttChartView />
|
|
|
|
) : moduleId ? (
|
|
|
|
<ModuleIssuesGanttChartView />
|
|
|
|
) : viewId ? (
|
|
|
|
<ViewIssuesGanttChartView />
|
|
|
|
) : (
|
|
|
|
<IssueGanttChartView />
|
|
|
|
)}
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|