diff --git a/src/components/kyl_waterbodypanel.jsx b/src/components/kyl_waterbodypanel.jsx index c8cafe5..45fbbc6 100644 --- a/src/components/kyl_waterbodypanel.jsx +++ b/src/components/kyl_waterbodypanel.jsx @@ -28,7 +28,7 @@ const KYLWaterbodyPanel = ({ waterbody, onBack, hideBackButton = false }) => { and is situated {waterbody?.properties?.on_drainage_line === 1 ? "on" : "off"} the drainage line, belonging to stream order {waterbody?.properties?.max_stream_order}. {waterbody?.properties?.waterbody_type === "river" && ( - <> This waterbody falls on {waterbody?.properties?.waterbody_type_name} . + <> This waterbody falls on {waterbody?.properties?.waterbody_type_name} river. )}

diff --git a/src/components/water_project_dashboard.jsx b/src/components/water_project_dashboard.jsx index bc6f341..229856f 100644 --- a/src/components/water_project_dashboard.jsx +++ b/src/components/water_project_dashboard.jsx @@ -1398,6 +1398,8 @@ const mwsSheet = XLSX.utils.json_to_sheet(mwsData, { saveAs(blob, fileName); }; + + console.log(activeSelectedWaterbody) return (
@@ -1431,9 +1433,47 @@ const mwsSheet = XLSX.utils.json_to_sheet(mwsData, {
)} + + + {isTehsilMode && activeSelectedWaterbody && ( +
+
+ + Waterbody Insights: + {" "} + This waterbody extends over{" "} + + {Number( + activeSelectedWaterbody?.properties?.area_ored ?? + activeSelectedWaterbody?.areaOred ?? 0 + ).toFixed(2)} hectares + {" "} + and is situated on the drainage line, belonging to{" "} + + stream order{" "} + {activeSelectedWaterbody?.properties?.max_stream_order ?? + activeSelectedWaterbody?.maxStreamOrder ?? "N/A"} + . + {(activeSelectedWaterbody?.properties?.waterbody_type ?? + activeSelectedWaterbody?.waterbody_type) === "river" ? ( + <> + This waterbody falls on{" "} + + {activeSelectedWaterbody?.properties?.waterbody_type_name ?? + activeSelectedWaterbody?.waterbody_type_name ?? + "N/A"} + river. + + ) : ( + <> This waterbody does not fall on any river. + )}. + +
+
+ )} {/* ====================== TOP BUTTONS + SUMMARY ====================== */} -
+
{mode === "project" && (