From 8ed09b0a3370a9f5f7151bde06fb0d2b86a330c6 Mon Sep 17 00:00:00 2001 From: lastminutediorama Date: Fri, 30 Aug 2024 10:02:53 -0500 Subject: [PATCH] move TreatmentType to types --- src/interface/src/app/types/treatment.types.ts | 12 ++++++++++++ .../treatment-expander.component.ts | 14 +------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/interface/src/app/types/treatment.types.ts b/src/interface/src/app/types/treatment.types.ts index 67de9e2fc..7fe7f37bb 100644 --- a/src/interface/src/app/types/treatment.types.ts +++ b/src/interface/src/app/types/treatment.types.ts @@ -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'; diff --git a/src/interface/src/styleguide/treatment-expander/treatment-expander.component.ts b/src/interface/src/styleguide/treatment-expander/treatment-expander.component.ts index 0ab773a06..a2f16811a 100644 --- a/src/interface/src/styleguide/treatment-expander/treatment-expander.component.ts +++ b/src/interface/src/styleguide/treatment-expander/treatment-expander.component.ts @@ -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