feat: cycle gantt view option added (#1083)
This commit is contained in:
parent
f2c8bdba34
commit
186b5b5500
2 changed files with 45 additions and 3 deletions
|
|
@ -74,7 +74,7 @@ export const CompletedCycles: React.FC<CompletedCyclesListProps> = ({
|
|||
/>
|
||||
<span>Completed cycles are not editable.</span>
|
||||
</div>
|
||||
{cycleView === "list" ? (
|
||||
{cycleView === "list" && (
|
||||
<div>
|
||||
{completedCycles.completed_cycles.map((cycle) => (
|
||||
<div className="hover:bg-brand-surface-2">
|
||||
|
|
@ -90,7 +90,8 @@ export const CompletedCycles: React.FC<CompletedCyclesListProps> = ({
|
|||
</div>
|
||||
))}
|
||||
</div>
|
||||
) : (
|
||||
)}
|
||||
{cycleView === "board" && (
|
||||
<div className="grid grid-cols-1 gap-9 md:grid-cols-2 lg:grid-cols-3">
|
||||
{completedCycles.completed_cycles.map((cycle) => (
|
||||
<SingleCycleCard
|
||||
|
|
@ -103,6 +104,14 @@ export const CompletedCycles: React.FC<CompletedCyclesListProps> = ({
|
|||
))}
|
||||
</div>
|
||||
)}
|
||||
{cycleView === "gantt" && (
|
||||
<EmptyState
|
||||
type="cycle"
|
||||
title="Create New Cycle"
|
||||
description="Sprint more effectively with Cycles by confining your project to a fixed amount of time. Create new cycle now."
|
||||
imgURL={emptyCycle}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
) : (
|
||||
<EmptyState
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue