diff --git a/client/src/containers/projects/custom-project/details/index.tsx b/client/src/containers/projects/custom-project/details/index.tsx index 2bfbd5e6..8764facc 100644 --- a/client/src/containers/projects/custom-project/details/index.tsx +++ b/client/src/containers/projects/custom-project/details/index.tsx @@ -1,7 +1,7 @@ import { FC } from "react"; import { ACTIVITY } from "@shared/entities/activity.enum"; -import { CARBON_REVENUES_TO_COVER } from "@shared/entities/custom-project.entity"; +import { CARBON_REVENUES_TO_COVER } from "@shared/entities/carbon-revenues-to-cover.enum"; import { ECOSYSTEM } from "@shared/entities/ecosystem.enum"; import DetailItem from "@/containers/projects/custom-project/details/detail-item"; diff --git a/client/src/containers/projects/custom-project/mock-data.ts b/client/src/containers/projects/custom-project/mock-data.ts index 4031ac51..d830592a 100644 --- a/client/src/containers/projects/custom-project/mock-data.ts +++ b/client/src/containers/projects/custom-project/mock-data.ts @@ -2,7 +2,7 @@ import { ACTIVITY, RESTORATION_ACTIVITY_SUBTYPE, } from "@shared/entities/activity.enum"; -import { CARBON_REVENUES_TO_COVER } from "@shared/entities/custom-project.entity"; +import { CARBON_REVENUES_TO_COVER } from "@shared/entities/carbon-revenues-to-cover.enum"; import { ECOSYSTEM } from "@shared/entities/ecosystem.enum"; // TODO: tooltip info will go to constants/tooltip-info.ts diff --git a/shared/entities/carbon-revenues-to-cover.enum.ts b/shared/entities/carbon-revenues-to-cover.enum.ts new file mode 100644 index 00000000..d9fb520b --- /dev/null +++ b/shared/entities/carbon-revenues-to-cover.enum.ts @@ -0,0 +1,5 @@ +// TODO: Replace to custom-project.entity.ts when import from @api are removed +export enum CARBON_REVENUES_TO_COVER { + OPEX = "Opex", + CAPEX_AND_OPEX = "Capex and Opex", +} diff --git a/shared/entities/custom-project.entity.ts b/shared/entities/custom-project.entity.ts index 94833c9a..c206aea1 100644 --- a/shared/entities/custom-project.entity.ts +++ b/shared/entities/custom-project.entity.ts @@ -17,11 +17,6 @@ import { Country } from "@shared/entities/country.entity"; * The shape defined here is probably wrong, it's only based on the output of the prototype in the notebooks, and it will only serve as a learning resource. */ -export enum CARBON_REVENUES_TO_COVER { - OPEX = "Opex", - CAPEX_AND_OPEX = "Capex and Opex", -} - @Entity({ name: "custom_projects" }) export class CustomProject { @PrimaryGeneratedColumn("uuid")