forked from github/plane
d2717a221c
* dev: context menu * chore: handle menu position on close * chore: project quick actions * chore: add more options to the project context menu * chore: cycle item context menu * refactor: context menu folder structure * chore: module custom context menu * chore: view custom context menu * chore: issues custom context menu * chore: reorder options * chore: issues custom context menu * chore: render the context menu in a portal
24 lines
656 B
TypeScript
24 lines
656 B
TypeScript
import React from "react";
|
|
// components
|
|
import { TIssueMap } from "@plane/types";
|
|
import { CalendarIssueBlock } from "@/components/issues";
|
|
import { TRenderQuickActions } from "../list/list-view-types";
|
|
// types
|
|
|
|
type Props = {
|
|
issues: TIssueMap | undefined;
|
|
issueId: string;
|
|
quickActions: TRenderQuickActions;
|
|
isDragging?: boolean;
|
|
};
|
|
|
|
export const CalendarIssueBlockRoot: React.FC<Props> = (props) => {
|
|
const { issues, issueId, quickActions, isDragging } = props;
|
|
|
|
if (!issues?.[issueId]) return null;
|
|
|
|
const issue = issues?.[issueId];
|
|
|
|
return <CalendarIssueBlock isDragging={isDragging} issue={issue} quickActions={quickActions} />;
|
|
};
|