fix: moving space constants to package
This commit is contained in:
parent
23849789f9
commit
60f7edcef8
23 changed files with 343 additions and 322 deletions
|
|
@ -3,5 +3,6 @@ export * from "./color";
|
|||
export * from "./common";
|
||||
export * from "./emoji";
|
||||
export * from "./file";
|
||||
export * from "./issue";
|
||||
export * from "./string";
|
||||
export * from "./theme";
|
||||
|
|
|
|||
11
packages/utils/src/issue.ts
Normal file
11
packages/utils/src/issue.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { ISSUE_PRIORITY_FILTERS, TIssuePriorities, TIssueFilterPriorityObject } from "@plane/constants";
|
||||
|
||||
export const getIssuePriorityFilters = (priorityKey: TIssuePriorities): TIssueFilterPriorityObject | undefined => {
|
||||
const currentIssuePriority: TIssueFilterPriorityObject | undefined =
|
||||
ISSUE_PRIORITY_FILTERS && ISSUE_PRIORITY_FILTERS.length > 0
|
||||
? ISSUE_PRIORITY_FILTERS.find((_priority) => _priority.key === priorityKey)
|
||||
: undefined;
|
||||
|
||||
if (currentIssuePriority) return currentIssuePriority;
|
||||
return undefined;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue