Skip to content

Commit

Permalink
Moved CARBON_REVENUES_TO_COVER enum
Browse files Browse the repository at this point in the history
  • Loading branch information
atrincas authored and Andrés González committed Dec 2, 2024
1 parent e27804a commit 7282f8a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FC } from "react";

import { ACTIVITY } from "@shared/entities/activity.enum";
import { CARBON_REVENUES_TO_COVER } from "@shared/entities/carbon-revenues-to-cover.enum";
import { CARBON_REVENUES_TO_COVER } from "@shared/entities/custom-project.entity";
import { ECOSYSTEM } from "@shared/entities/ecosystem.enum";

import DetailItem from "@/containers/projects/custom-project/details/detail-item";
Expand Down
2 changes: 1 addition & 1 deletion client/src/containers/projects/custom-project/mock-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
ACTIVITY,
RESTORATION_ACTIVITY_SUBTYPE,
} from "@shared/entities/activity.enum";
import { CARBON_REVENUES_TO_COVER } from "@shared/entities/carbon-revenues-to-cover.enum";
import { CARBON_REVENUES_TO_COVER } from "@shared/entities/custom-project.entity";
import { ECOSYSTEM } from "@shared/entities/ecosystem.enum";

// TODO: tooltip info will go to constants/tooltip-info.ts
Expand Down
5 changes: 0 additions & 5 deletions shared/entities/carbon-revenues-to-cover.enum.ts

This file was deleted.

5 changes: 5 additions & 0 deletions shared/entities/custom-project.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ import { type CustomProjectOutput } from "@shared/dtos/custom-projects/custom-pr
* to other entities that (i.e User)
*/

export enum CARBON_REVENUES_TO_COVER {
OPEX = "Opex",
CAPEX_AND_OPEX = "Capex and Opex",
}

@Entity({ name: "custom_projects" })
export class CustomProject {
@PrimaryGeneratedColumn("uuid")
Expand Down

0 comments on commit 7282f8a

Please sign in to comment.