mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
1be82814fc
* style: issue peek overview ui improvement * chore: implemented issue subscription in peek overview * chore: issue properties dropdown refactor * fix: build error * chore: label select refactor * chore: issue peekoverview revamp and refactor * chore: issue peekoverview properties added and code refactor --------- Co-authored-by: gurusainath <gurusainath007@gmail.com>
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
import { FC } from "react";
|
|
// components
|
|
import { IssueBlock } from "components/issues";
|
|
// types
|
|
import { IIssue } 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;
|
|
}
|
|
|
|
export const IssueBlocksList: FC<Props> = (props) => {
|
|
const { columnId, issues, handleIssues, quickActions, display_properties } = props;
|
|
|
|
return (
|
|
<div className="w-full h-full relative divide-y-[0.5px] divide-custom-border-200">
|
|
{issues && issues.length > 0 ? (
|
|
issues.map((issue) => (
|
|
<IssueBlock
|
|
key={issue.id}
|
|
columnId={columnId}
|
|
issue={issue}
|
|
handleIssues={handleIssues}
|
|
quickActions={quickActions}
|
|
display_properties={display_properties}
|
|
/>
|
|
))
|
|
) : (
|
|
<div className="bg-custom-background-100 text-custom-text-400 text-sm p-3">No issues</div>
|
|
)}
|
|
</div>
|
|
);
|
|
};
|