diff --git a/apps/app/components/cycles/cycles-list.tsx b/apps/app/components/cycles/cycles-list.tsx index 54bf415c5..28cd171d0 100644 --- a/apps/app/components/cycles/cycles-list.tsx +++ b/apps/app/components/cycles/cycles-list.tsx @@ -1,11 +1,12 @@ import { useState } from "react"; // components -import { DeleteCycleModal, SingleCycleCard } from "components/cycles"; +import { DeleteCycleModal, SingleCycleCard } from "components/cycles"; import { EmptyState, Loader } from "components/ui"; // image import emptyCycle from "public/empty-state/empty-cycle.svg"; - +// icon +import { XMarkIcon } from "@heroicons/react/24/outline"; // types import { ICycle, SelectCycleType } from "types"; @@ -24,6 +25,7 @@ export const CyclesList: React.FC = ({ }) => { const [cycleDeleteModal, setCycleDeleteModal] = useState(false); const [selectedCycleForDelete, setSelectedCycleForDelete] = useState(); + const [showNoCurrentCycleMessage, setShowNoCurrentCycleMessage] = useState(true); const handleDeleteCycle = (cycle: ICycle) => { setSelectedCycleForDelete({ ...cycle, actionType: "delete" }); @@ -58,6 +60,15 @@ export const CyclesList: React.FC = ({ /> ))} + ) : type === "current" ? ( + showNoCurrentCycleMessage && ( +
+

No current cycle is present.

+ +
+ ) ) : ( = (props) => { />
-

Current Cycle

+ {currentAndUpcomingCycles && currentAndUpcomingCycles.current_cycle.length > 0 && ( +

Current Cycle

+ )}
= (props) => {
-

Others

+

Other Cycles