plane/web/components/issue-layouts/list/list.tsx

20 lines
427 B
TypeScript
Raw Normal View History

2023-09-15 10:07:47 +00:00
import React, { FC } from "react";
import { IIssue } from "types";
import { IssueListItem } from "./item";
export interface IIssueListView {
issues: IIssue[];
2023-09-15 11:25:38 +00:00
groupId: string;
2023-09-15 10:07:47 +00:00
}
export const IssueListView: FC<IIssueListView> = (props) => {
2023-09-15 11:25:38 +00:00
const { issues = [], groupId } = props;
2023-09-15 10:07:47 +00:00
return (
<div>
{issues.map((issue) => (
2023-09-15 11:25:38 +00:00
<IssueListItem issue={issue} groupId={groupId} />
2023-09-15 10:07:47 +00:00
))}
</div>
);
};