Skip to content

Commit

Permalink
move TreatmentType to types
Browse files Browse the repository at this point in the history
  • Loading branch information
lastminutediorama committed Aug 30, 2024
1 parent c259c2c commit 8ed09b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 12 additions & 0 deletions src/interface/src/app/types/treatment.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@ export interface TreatmentPlan {
created_at: string;
creator_name: string;
}

export type TreatmentType =
| 'No Treatment'
| 'Moderate thin & Biomass removal'
| 'Heavy thin & Biomass removal'
| 'Moderate thin & Pile burn'
| 'Heavy thin & Pile burn'
| 'Moderate mastication'
| 'Heavy mastication'
| 'Prescribed fire'
| 'Heavy thin & RX fire'
| 'Mastication & RX fire';
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,13 @@ import {
TreatmentIconColor,
} from '../treatment-type-icon/treatment-type-icon.component';
import { SequenceIconComponent } from '../sequence-icon/sequence-icon.component';
import { TreatmentType } from '@types';

export interface rxType {
name: string;
year: number;
}

//TODO: This should live in a central place and possibly map to something that's not a string?
export type TreatmentType =
| 'No Treatment'
| 'Moderate thin & Biomass removal'
| 'Heavy thin & Biomass removal'
| 'Moderate thin & Pile burn'
| 'Heavy thin & Pile burn'
| 'Moderate mastication'
| 'Heavy mastication'
| 'Prescribed fire'
| 'Heavy thin & RX fire'
| 'Mastication & RX fire';

/**
* Expander component
* A component to be used in the treatments panel to show treatment details
Expand Down

0 comments on commit 8ed09b0

Please sign in to comment.