// ui import { Tooltip, StateGroupIcon } from "@plane/ui"; import { IssuePeekOverview } from "components/issues/issue-peek-overview"; import { IBlockUpdateData } from "components/gantt-chart"; // helpers import { renderShortDate } from "helpers/date-time.helper"; // types import { IIssue } from "types"; export const IssueGanttBlock = ({ data, handleIssue, }: { data: IIssue; handleIssue: (block: IIssue, payload: IBlockUpdateData) => void; }) => ( handleIssue({ ...data, ...issueToUpdate }, {})} >
{data?.name}
{renderShortDate(data?.start_date ?? "")} to {renderShortDate(data?.target_date ?? "")}
} position="top-left" >
{data?.name}
); // rendering issues on gantt sidebar export const IssueGanttSidebarBlock = ({ data, handleIssue, }: { data: IIssue; handleIssue: (block: IIssue, payload: IBlockUpdateData) => void; }) => ( handleIssue({ ...data, ...issueToUpdate }, {})} >
{data?.project_detail?.identifier} {data?.sequence_id}
{data?.name}
);