|
|
@@ -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>
|
|
|
</>
|
|
|
);
|