mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
888665783e
* chore: kanban issue highlight * chore: issue highlighting added
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) => 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>
|
|
);
|
|
};
|