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

21 lines
481 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";
2023-09-15 14:37:38 +00:00
import { observer } from "mobx-react-lite";
2023-09-15 10:07:47 +00:00
export interface IIssueListView {
issues: IIssue[];
2023-09-15 11:25:38 +00:00
groupId: string;
2023-09-15 10:07:47 +00:00
}
2023-09-15 14:37:38 +00:00
export const IssueListView: FC<IIssueListView> = observer((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>
);
2023-09-15 14:37:38 +00:00
});