Quellcode durchsuchen

Fix titulos tablas

wilitp vor 4 Jahren
Ursprung
Commit
a59f66809a

+ 12 - 3
app/src/components/UI/dashboard/cockpit/index.tsx

@@ -16,7 +16,12 @@ import * as actions from "../../../../context/dashboard/actions";
 import { sectors } from "../../../../api";
 import { UserStateContext } from "../../../../context/auth/AuthProvider";
 import { Station } from "../../../../types";
-import { campMaxMin, campString, getCampList, mustCheckDateOrder } from "../../../../utils";
+import {
+  campMaxMin,
+  campString,
+  getCampList,
+  mustCheckDateOrder,
+} from "../../../../utils";
 import Modal from "../../../portals/modal";
 
 const Cockpit: FC = () => {
@@ -29,7 +34,10 @@ const Cockpit: FC = () => {
 
   // Opciones para selector de campania
   const selectedCampaignYear = dashboardState.year;
-  const campaignList = dashboardState.years.map((v, _) => ({ title: v, value: v }));
+  const campaignList = dashboardState.years.map((v, _) => ({
+    title: v,
+    value: v,
+  }));
 
   // Inicializacion del selector de fincas
   useEffect(() => {
@@ -141,7 +149,8 @@ const Cockpit: FC = () => {
         </div>
       </section>
       <h5>
-        Temporada {parseInt(dashboardState.year) - 1} - {dashboardState.year} - Vendimia {parseInt(dashboardState.year) - 1}
+        Temporada {parseInt(dashboardState.year) - 1} - {dashboardState.year} -
+        Vendimia {parseInt(dashboardState.year)}
       </h5>
     </>
   );

+ 3 - 1
app/src/components/data/DegreeDay/index.tsx

@@ -44,7 +44,9 @@ const DegreeDay: FC<DegreesProps> = () => {
 
   return (
     <section>
-      <h5>Grados días promedio mensuales</h5>
+      <h5>
+        Grados días promedio mensuales - {data ? data[0].station.title : null}
+      </h5>
       <table className={classes.table}>
         <thead>
           <tr>

+ 1 - 1
app/src/components/data/GeneralPerSeason/index.tsx

@@ -70,7 +70,7 @@ const TemperaturePerSeason: FC = () => {
 
   return (
     <>
-      <h5>General</h5>
+      <h5>General - {data ? data[0].station.title : null}</h5>
       <table className={classes.table}>
         <Header daysToMatchCurrentTemperature={true} />
         <tbody>{data && rows}</tbody>

+ 1 - 1
app/src/components/data/Precipitation/index.tsx

@@ -45,7 +45,7 @@ const Precipitation: FC<PrecipitationProps> = () => {
 
   return (
     <section>
-      <h5>Precipitaciones mensuales</h5>
+      <h5>Precipitaciones mensuales - {data ? data[0].station.title : null}</h5>
 
       <table className={classes.table}>
         <thead>