diff --git a/apps/app/components/cycles/single-cycle-card.tsx b/apps/app/components/cycles/single-cycle-card.tsx index a5d2d3745..c14617ee7 100644 --- a/apps/app/components/cycles/single-cycle-card.tsx +++ b/apps/app/components/cycles/single-cycle-card.tsx @@ -239,91 +239,114 @@ export const SingleCycleCard: React.FC = ({ return (
-
-
- - - + + +
+
+

{truncateText(cycle.name, 75)}

-
- - - {cycle.is_favorite ? ( - - ) : ( - - )} -
+ + {cycle.is_favorite ? ( + + ) : ( + + )} +
-
-
- - Start : - {renderShortDateWithYearFormat(startDate)} +
+
+ + Start : + {renderShortDateWithYearFormat(startDate)} +
+
+ + End : + {renderShortDateWithYearFormat(endDate)} +
+
+ +
+
+ {cycle.owned_by.avatar && cycle.owned_by.avatar !== "" ? ( + {cycle.owned_by.first_name} + ) : ( + + {cycle.owned_by.first_name.charAt(0)} + + )} + {cycle.owned_by.first_name} +
+
+ {!isCompleted && ( + + )} + + + {!isCompleted && ( + { + e.preventDefault(); + handleDeleteCycle(); + }} + > + + + Delete cycle + + + )} + { + e.preventDefault(); + handleCopyText(); + }} + > + + + Copy cycle link + + + +
+
-
- - End : - {renderShortDateWithYearFormat(endDate)} -
-
-
+ +
-
-
- {cycle.owned_by.avatar && cycle.owned_by.avatar !== "" ? ( - {cycle.owned_by.first_name} - ) : ( - - {cycle.owned_by.first_name.charAt(0)} - - )} - {cycle.owned_by.first_name} -
-
- {!isCompleted && ( - - )} - - - {!isCompleted && ( - - - - Delete cycle - - - )} - - - - Copy cycle link - - - -
-
- {({ open }) => (