Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
nengyuanzhang committed Dec 12, 2024
2 parents bb76db1 + f5f1d77 commit eb46def
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ const CollectionDashboard = ({ setRedirect, setRedirectUrl, t }) => {
<CustomizeMapBox
Latitude={rootLatitude}
Longitude={rootLongitude}
Zoom={4}
Zoom={8}
Geojson={geojson['features']}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const InvertorDetails = ({
return (
<Card className="mb-3 fs--1">
<CardBody className="bg-light">
<h6>{name}</h6>
<Table striped className="border-bottom">
<thead>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ const ItemDashboard = ({ setRedirect, setRedirectUrl, t }) => {
<CustomizeMapBox
Latitude={rootLatitude}
Longitude={rootLongitude}
Zoom={4}
Zoom={8}
Geojson={geojson['features']}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Fragment, useState, useEffect } from 'react';
import React, { Fragment, useState, useEffect, useContext } from 'react';
import {
Button,
ButtonGroup,
Expand Down Expand Up @@ -32,6 +32,7 @@ import { v4 as uuidv4 } from 'uuid';
import { APIBaseURL, settings } from '../../../config';
import useInterval from '../../../hooks/useInterval';
import { useLocation } from 'react-router-dom';
import AppContext from '../../../context/Context';
import Datetime from 'react-datetime';
import { isIterableArray } from '../../../helpers/utils';
import classNames from 'classnames';
Expand All @@ -45,6 +46,7 @@ const PhotovoltaicPowerStationDetails = ({ setRedirect, setRedirectUrl, t }) =>
const location = useLocation();
const uuid = location.search.split('=')[1];
const photovoltaicPowerStationUUID = location.search.split('=')[1];
const { currency } = useContext(AppContext);

useEffect(() => {
let is_logged_in = getCookieValue('is_logged_in');
Expand Down Expand Up @@ -597,7 +599,7 @@ const PhotovoltaicPowerStationDetails = ({ setRedirect, setRedirectUrl, t }) =>
</tr>
<tr className="border-bottom">
<th className="pl-0 pb-0">{t("Total Generation")}</th>
<th className="pr-0 text-right">{totalGenerationEnergyValue} kWh</th>
<th className="pr-0 text-right">{totalGenerationEnergyValue / 1000.0} mWh</th>
</tr>
<tr className="border-bottom">
<th className="pl-0 pb-0">{t("Total Efficiency")}</th>
Expand All @@ -621,11 +623,11 @@ const PhotovoltaicPowerStationDetails = ({ setRedirect, setRedirectUrl, t }) =>
<tbody>
<tr className="border-bottom">
<th className="pl-0">{t("Today's Income")}</th>
<th className="pr-0 text-right ">{todayGenerationRevenueValue} </th>
<th className="pr-0 text-right ">{todayGenerationRevenueValue} {currency}</th>
</tr>
<tr className="border-bottom">
<th className="pl-0 pb-0">{t("Total Income")}</th>
<th className="pr-0 text-right">{totalGenerationRevenueValue} </th>
<th className="pr-0 text-right">{totalGenerationRevenueValue} {currency}</th>
</tr>
</tbody>
</Table>
Expand Down Expand Up @@ -722,7 +724,7 @@ const PhotovoltaicPowerStationDetails = ({ setRedirect, setRedirectUrl, t }) =>
<NavLink
className={classNames({ active: activeTabBottom === '2' })}
onClick={() => {
setActiveTabBottom('3');
setActiveTabBottom('2');
}}
>
<h6>{t('Fault Alarms')}</h6>
Expand All @@ -733,7 +735,7 @@ const PhotovoltaicPowerStationDetails = ({ setRedirect, setRedirectUrl, t }) =>
<NavLink
className={classNames({ active: activeTabBottom === '3' })}
onClick={() => {
setActiveTabBottom('4');
setActiveTabBottom('3');
fetchInvertorDetails()
}}
>
Expand All @@ -745,7 +747,7 @@ const PhotovoltaicPowerStationDetails = ({ setRedirect, setRedirectUrl, t }) =>
<NavLink
className={classNames({ active: activeTabBottom === '4' })}
onClick={() => {
setActiveTabBottom('6');
setActiveTabBottom('4');
fetchMetersDetails();
}}
>
Expand Down

0 comments on commit eb46def

Please sign in to comment.