import { observer } from "mobx-react-lite"; import { Draggable } from "@hello-pangea/dnd"; // components import { IssuePeekOverview } from "components/issues/issue-peek-overview"; import { Tooltip } from "@plane/ui"; // types import { IIssue } from "types"; import { EIssueActions } from "../types"; import { IIssueResponse } from "store/issues/types"; type Props = { issues: IIssueResponse | undefined; issueIdList: string[] | null; handleIssues: (date: string, issue: IIssue, action: EIssueActions) => void; quickActions: (issue: IIssue) => React.ReactNode; }; export const CalendarIssueBlocks: React.FC = observer((props) => { const { issues, issueIdList, handleIssues, quickActions } = props; return ( <> {issueIdList?.map((issueId, index) => { if (!issues?.[issueId]) return null; const issue = issues?.[issueId]; return ( {(provided, snapshot) => (
{issue?.tempId !== undefined && (
)}
{issue.project_detail.identifier}-{issue.sequence_id}
{ handleIssues(issue.target_date ?? "", { ...issue, ...issueToUpdate }, EIssueActions.UPDATE); }} >
{issue.name}
{quickActions(issue)}
)} ); })} ); });