mirror of
https://github.com/makeplane/plane.git
synced 2026-07-11 13:00:11 +02:00
* * chore: refactored estimates components. * chore: added translations for estimates components. * fix: translation key update
14 lines
347 B
TypeScript
14 lines
347 B
TypeScript
import { TEstimateSystemKeys } from "@plane/types";
|
|
import { EEstimateSystem } from "@plane/types/src/enums";
|
|
|
|
export const isEstimateSystemEnabled = (key: TEstimateSystemKeys) => {
|
|
switch (key) {
|
|
case EEstimateSystem.POINTS:
|
|
return true;
|
|
case EEstimateSystem.CATEGORIES:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
};
|