plane/web/components/issues/issue-layouts/kanban/headers/assignee.tsx
guru_sainath 43404bfcdf
Implemented swimlanes and kanban view (#2262)
* chore: issue store for kanban and calendar

* chore: updated ui for kanba and swimlanes

* chore: yarn.lock updated
2023-09-26 13:18:42 +05:30

20 lines
605 B
TypeScript

// components
import { HeaderCard } from "./card";
// mobx
import { observer } from "mobx-react-lite";
// store
import { useMobxStore } from "lib/mobx/store-provider";
import { RootStore } from "store/root";
export interface IAssigneesHeader {
column_id: string;
}
export const AssigneesHeader: React.FC<IAssigneesHeader> = observer(({ column_id }) => {
const { project: projectStore }: RootStore = useMobxStore();
const assignee = (column_id && projectStore?.getProjectMemberById(column_id)) ?? null;
return <>{assignee && <HeaderCard title={assignee?.member?.display_name || ""} />}</>;
});