Skip to content
Snippets Groups Projects
Commit 61ed0930 authored by Holzheu Hannah's avatar Holzheu Hannah
Browse files

introduced enums

parent 67a0b4dc
No related branches found
No related tags found
1 merge request!28Closes #40 : Custom useGrowbrosFetcher hook to make calls to the backend.
......@@ -10,10 +10,10 @@ type plant = {
plantWeekEnd: number;
harvestWeekStart: number;
harvestWeekEnd: number;
groundType: string;
nutrientDemand: string;
waterDemand: string;
lightingDemand: string;
groundType: GroundType;
nutrientDemand: NutrientDemand;
waterDemand: WaterDemand;
lightingDemand: LightingDemand;
imageUrl: string;
};
......@@ -27,4 +27,16 @@ type propsSliderFilter = {
topic: string;
min: number;
max: number;
};
\ No newline at end of file
};
type searchRequest= {
searchTerm: string,
waterDemand: WaterDemand,
nutrientDemand: NutrientDemand,
groundType: GroundType,
lightingDemand: LightingDemand,
plantWeekStart: string,
plantWeekEnd: string,
growthDurationMin: number,
growthDurationMax: number
}
\ No newline at end of file
enum GroundType{
}
enum NutrientDemand{
}
enum WaterDemand{
DRY= "Trocken",
WET= "Feucht",
VERY_WET= "Sehr Feucht"
}
enum LightingDemand{}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment