diff --git a/apps/app/components/cycles/transfer-issues-modal.tsx b/apps/app/components/cycles/transfer-issues-modal.tsx index 5227000d4..30441666b 100644 --- a/apps/app/components/cycles/transfer-issues-modal.tsx +++ b/apps/app/components/cycles/transfer-issues-modal.tsx @@ -12,7 +12,7 @@ import cyclesService from "services/cycles.service"; import useToast from "hooks/use-toast"; //icons import { MagnifyingGlassIcon, XMarkIcon } from "@heroicons/react/24/outline"; -import { ContrastIcon, CyclesIcon } from "components/icons"; +import { ContrastIcon, CyclesIcon, ExclamationIcon } from "components/icons"; // fetch-key import { CYCLE_INCOMPLETE_LIST } from "constants/fetch-keys"; // types @@ -31,7 +31,6 @@ export const TransferIssuesModal: React.FC = ({ isOpen, handleClose }) => const { setToastAlert } = useToast(); - const transferIssue = async (payload: any) => { await cyclesService .transferIssues(workspaceSlug as string, projectId as string, cycleId as string, payload) @@ -39,16 +38,14 @@ export const TransferIssuesModal: React.FC = ({ isOpen, handleClose }) => setToastAlert({ type: "success", title: "Issues transfered successfully", - message: - "Issues have been transferred successfully", + message: "Issues have been transferred successfully", }); }) .catch((err) => { setToastAlert({ type: "error", title: "Error!", - message: - "Issues cannot be transfer. Please try again.", + message: "Issues cannot be transfer. Please try again.", }); }); }; @@ -100,15 +97,15 @@ export const TransferIssuesModal: React.FC = ({ isOpen, handleClose }) => leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
-
+

Transfer Issues

-
+
= ({ isOpen, handleClose }) => value={query} />
-
+
{filteredOptions ? ( filteredOptions.length > 0 ? ( filteredOptions.map((option: ICycle) => ( @@ -136,7 +133,13 @@ export const TransferIssuesModal: React.FC = ({ isOpen, handleClose }) => )) ) : ( -

No matching results

+
+ + + You don’t have any current cycle. Please create one to transfer the + issues. + +
) ) : (

Loading...