mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
2bf2e98b00
* chore: updated issue filters in space * chore: persisting the query params even when we switch layouts --------- Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
19 lines
604 B
TypeScript
19 lines
604 B
TypeScript
"use client";
|
|
|
|
// types
|
|
import { issuePriorityFilter } from "@/constants/issue";
|
|
import { TIssueFilterPriority } from "@/types/issue";
|
|
// constants
|
|
|
|
export const IssueBlockPriority = ({ priority }: { priority: TIssueFilterPriority | null }) => {
|
|
const priority_detail = priority != null ? issuePriorityFilter(priority) : null;
|
|
|
|
if (priority_detail === null) return <></>;
|
|
|
|
return (
|
|
<div className={`grid h-6 w-6 place-items-center rounded border-[0.5px] ${priority_detail?.className}`}>
|
|
<span className="material-symbols-rounded text-sm">{priority_detail?.icon}</span>
|
|
</div>
|
|
);
|
|
};
|