forked from github/plane
d2717a221c
* dev: context menu * chore: handle menu position on close * chore: project quick actions * chore: add more options to the project context menu * chore: cycle item context menu * refactor: context menu folder structure * chore: module custom context menu * chore: view custom context menu * chore: issues custom context menu * chore: reorder options * chore: issues custom context menu * chore: render the context menu in a portal
21 lines
462 B
TypeScript
21 lines
462 B
TypeScript
// components
|
|
import { CyclesListItem } from "@/components/cycles";
|
|
|
|
type Props = {
|
|
cycleIds: string[];
|
|
projectId: string;
|
|
workspaceSlug: string;
|
|
};
|
|
|
|
export const CyclesListMap: React.FC<Props> = (props) => {
|
|
const { cycleIds, projectId, workspaceSlug } = props;
|
|
|
|
return (
|
|
<>
|
|
{cycleIds.map((cycleId) => (
|
|
<CyclesListItem key={cycleId} cycleId={cycleId} workspaceSlug={workspaceSlug} projectId={projectId} />
|
|
))}
|
|
</>
|
|
);
|
|
};
|