mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
43404bfcdf
* chore: issue store for kanban and calendar * chore: updated ui for kanba and swimlanes * chore: yarn.lock updated
20 lines
567 B
TypeScript
20 lines
567 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 IStateHeader {
|
|
column_id: string;
|
|
}
|
|
|
|
export const StateHeader: React.FC<IStateHeader> = observer(({ column_id }) => {
|
|
const { project: projectStore }: RootStore = useMobxStore();
|
|
|
|
const state = (column_id && projectStore?.getProjectStateById(column_id)) ?? null;
|
|
|
|
return <>{state && <HeaderCard title={state?.name || ""} />}</>;
|
|
});
|