From 186b5b55000d39b9a4e34430cea49e54c7b3a56b Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Fri, 19 May 2023 18:08:47 +0530 Subject: [PATCH] feat: cycle gantt view option added (#1083) --- .../components/cycles/completed-cycles.tsx | 13 +++++-- apps/app/components/cycles/cycles-view.tsx | 35 ++++++++++++++++++- 2 files changed, 45 insertions(+), 3 deletions(-) diff --git a/apps/app/components/cycles/completed-cycles.tsx b/apps/app/components/cycles/completed-cycles.tsx index 761eb8f3a..738b6c5fb 100644 --- a/apps/app/components/cycles/completed-cycles.tsx +++ b/apps/app/components/cycles/completed-cycles.tsx @@ -74,7 +74,7 @@ export const CompletedCycles: React.FC = ({ /> Completed cycles are not editable. - {cycleView === "list" ? ( + {cycleView === "list" && (
{completedCycles.completed_cycles.map((cycle) => (
@@ -90,7 +90,8 @@ export const CompletedCycles: React.FC = ({
))}
- ) : ( + )} + {cycleView === "board" && (
{completedCycles.completed_cycles.map((cycle) => ( = ({ ))}
)} + {cycleView === "gantt" && ( + + )} ) : ( = ({ > + )} @@ -153,6 +162,14 @@ export const CyclesView: React.FC = ({ type="current" /> )} + {cycleView === "gantt" && ( + + )} {currentAndUpcomingCycles?.current_cycle?.[0] ? ( @@ -183,6 +200,14 @@ export const CyclesView: React.FC = ({ type="upcoming" /> )} + {cycleView === "gantt" && ( + + )} = ({ type="draft" /> )} + {cycleView === "gantt" && ( + + )}