forked from github/plane
061be85a5d
* fix: GET request changes * fix: filtering changes * feat: cycles and modules archive. * chore: disable fetching of cycle/ module details when clicked on the card in archives page. * chore: remove copy link button from archived modules/ cycles. * fix: archived cycle and module loading fliker issue. * chore: add validation to only archive completed cycles. * chore: add validation to only archive completed or cancelled module. * chore: archived issues/ cycles/ modules empty state update. --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
28 lines
580 B
TypeScript
28 lines
580 B
TypeScript
// components
|
|
import { CyclesListItem } from "@/components/cycles";
|
|
|
|
type Props = {
|
|
cycleIds: string[];
|
|
projectId: string;
|
|
workspaceSlug: string;
|
|
isArchived?: boolean;
|
|
};
|
|
|
|
export const CyclesListMap: React.FC<Props> = (props) => {
|
|
const { cycleIds, projectId, workspaceSlug, isArchived } = props;
|
|
|
|
return (
|
|
<>
|
|
{cycleIds.map((cycleId) => (
|
|
<CyclesListItem
|
|
key={cycleId}
|
|
cycleId={cycleId}
|
|
workspaceSlug={workspaceSlug}
|
|
projectId={projectId}
|
|
isArchived={isArchived}
|
|
/>
|
|
))}
|
|
</>
|
|
);
|
|
};
|