Skip to content

Commit

Permalink
Temporary replaced enum to seperate file
Browse files Browse the repository at this point in the history
  • Loading branch information
atrincas committed Dec 2, 2024
1 parent ec40fb7 commit 11bbe8a
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/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";
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/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
Expand Down
5 changes: 5 additions & 0 deletions shared/entities/carbon-revenues-to-cover.enum.ts
Original file line number Diff line number Diff line change
@@ -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",
}
5 changes: 0 additions & 5 deletions shared/entities/custom-project.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 11bbe8a

Please sign in to comment.