mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
a49f00bd39
* chore: update all issue property components * style: issue properties
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import { FC } from "react";
|
|
// components
|
|
import { IssueBlock } from "components/issues";
|
|
// types
|
|
import { IEstimatePoint, IIssue, IIssueLabels, IState, IUserLite } from "types";
|
|
|
|
interface Props {
|
|
columnId: string;
|
|
issues: IIssue[];
|
|
handleIssues: (group_by: string | null, issue: IIssue, action: "update" | "delete") => void;
|
|
quickActions: (group_by: string | null, issue: IIssue) => React.ReactNode;
|
|
display_properties: any;
|
|
states: IState[] | null;
|
|
labels: IIssueLabels[] | null;
|
|
members: IUserLite[] | null;
|
|
estimates: IEstimatePoint[] | null;
|
|
}
|
|
|
|
export const IssueBlocksList: FC<Props> = (props) => {
|
|
const { columnId, issues, handleIssues, quickActions, display_properties, states, labels, members, estimates } =
|
|
props;
|
|
|
|
return (
|
|
<>
|
|
{issues &&
|
|
issues?.length > 0 &&
|
|
issues.map((issue) => (
|
|
<IssueBlock
|
|
key={issue.id}
|
|
columnId={columnId}
|
|
issue={issue}
|
|
handleIssues={handleIssues}
|
|
quickActions={quickActions}
|
|
display_properties={display_properties}
|
|
states={states}
|
|
labels={labels}
|
|
members={members}
|
|
estimates={estimates}
|
|
/>
|
|
))}
|
|
</>
|
|
);
|
|
};
|