import React from "react"; // components import { KanBanGroupByHeaderRoot } from "./headers/group-by-root"; import { IssueBlock } from "./block"; // constants import { ISSUE_STATE_GROUPS, ISSUE_PRIORITIES, getValueFromObject } from "constants/issue"; // mobx import { observer } from "mobx-react-lite"; // mobx import { useMobxStore } from "lib/mobx/store-provider"; import { RootStore } from "store/root"; export interface IGroupByKanBan { issues: any; group_by: string | null; list: any; listKey: string; handleIssues?: (group_by: string | null, issue: any) => void; display_properties: any; } const GroupByKanBan: React.FC = observer( ({ issues, group_by, list, listKey, handleIssues, display_properties }) => (
{list && list.length > 0 && list.map((_list: any) => (
{issues && ( )}
))}
) ); export interface IKanBan { issues: any; group_by: string | null; handleDragDrop?: (result: any) => void | undefined; handleIssues?: (group_by: string | null, issue: any) => void; display_properties: any; } export const List: React.FC = observer(({ issues, group_by, handleIssues, display_properties }) => { const { project: projectStore }: RootStore = useMobxStore(); return (
{group_by && group_by === "state" && ( )} {group_by && group_by === "state_detail.group" && ( )} {group_by && group_by === "priority" && ( )} {group_by && group_by === "labels" && ( )} {group_by && group_by === "assignees" && ( )} {group_by && group_by === "created_by" && ( )}
); });