mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
0165abab3e
* chore: events naming convention changed * chore: track element added for project related events * chore: track element added for cycle related events * chore: track element added for module related events * chore: issue related events updated * refactor: event tracker store * refactor: event-tracker store * fix: posthog changes --------- Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
44 lines
1.4 KiB
TypeScript
44 lines
1.4 KiB
TypeScript
import { FC } from "react";
|
|
// components
|
|
import { IssueBlock } from "components/issues";
|
|
// types
|
|
import { TGroupedIssues, TIssue, IIssueDisplayProperties, TIssueMap, TUnGroupedIssues } from "@plane/types";
|
|
import { EIssueActions } from "../types";
|
|
|
|
interface Props {
|
|
issueIds: TGroupedIssues | TUnGroupedIssues | any;
|
|
issuesMap: TIssueMap;
|
|
canEditProperties: (projectId: string | undefined) => boolean;
|
|
handleIssues: (issue: TIssue, action: EIssueActions) => Promise<void>;
|
|
quickActions: (issue: TIssue) => React.ReactNode;
|
|
displayProperties: IIssueDisplayProperties | undefined;
|
|
}
|
|
|
|
export const IssueBlocksList: FC<Props> = (props) => {
|
|
const { issueIds, issuesMap, handleIssues, quickActions, displayProperties, canEditProperties } = props;
|
|
|
|
return (
|
|
<div className="relative h-full w-full">
|
|
{issueIds && issueIds.length > 0 ? (
|
|
issueIds.map((issueId: string) => {
|
|
if (!issueId) return null;
|
|
|
|
return (
|
|
<IssueBlock
|
|
key={issueId}
|
|
issueId={issueId}
|
|
issuesMap={issuesMap}
|
|
handleIssues={handleIssues}
|
|
quickActions={quickActions}
|
|
canEditProperties={canEditProperties}
|
|
displayProperties={displayProperties}
|
|
/>
|
|
);
|
|
})
|
|
) : (
|
|
<div className="bg-custom-background-100 p-3 text-sm text-custom-text-400">No issues</div>
|
|
)}
|
|
</div>
|
|
);
|
|
};
|