mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
cd5e5b96da
* feat: init mobx and issue filter * feat: Implemented list and kanban views in plane space and integrated mobx. * feat: updated store type check
19 lines
481 B
TypeScript
19 lines
481 B
TypeScript
"use client";
|
|
|
|
// constants
|
|
import { issueGroupFilter } from "constants/data";
|
|
|
|
export const IssueBlockState = ({ state }: any) => {
|
|
const stateGroup = issueGroupFilter(state.group);
|
|
|
|
if (stateGroup === null) return <></>;
|
|
return (
|
|
<div
|
|
className={`h-[24px] rounded-sm flex px-1 items-center border ${stateGroup?.className} gap-1 !bg-transparent !text-gray-700`}
|
|
>
|
|
<stateGroup.icon />
|
|
<div className="text-sm">{state?.name}</div>
|
|
</div>
|
|
);
|
|
};
|