Skip to content

Commit

Permalink
web: Rename component PV to SolarPV to fix fast refresh warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hoang-rio committed Nov 25, 2024
1 parent 83fbdfa commit 5c440bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ICProps } from "../Intefaces";
import GeneralValue from "./GeneralValue";
import PVPowerValue from "./PVPowerValue";

function PV({ inverterData, isSocketConnected }: ICProps) {
function SolarPV({ inverterData, isSocketConnected }: ICProps) {
return (
<div className="pv flex-1">
<div className="icon col align-center">
Expand Down Expand Up @@ -40,4 +40,4 @@ function PV({ inverterData, isSocketConnected }: ICProps) {
);
}

export default PV;
export default SolarPV;
4 changes: 2 additions & 2 deletions web_viewer/fe_src/src/components/SystemInformation.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IInverterData } from "../Intefaces";
import "./SystemInformation.css";
import PV from "./PV";
import SolarPV from "./SolarPV";
import Battery from "./Battery";
import Inverter from "./Inverter";
import Grid from "./Grid";
Expand Down Expand Up @@ -56,7 +56,7 @@ function SystemInformation({
</div>
<div className="row">
<div className="flex-1"></div>
<PV
<SolarPV
inverterData={inverterData}
isSocketConnected={isSocketConnected}
/>
Expand Down

0 comments on commit 5c440bb

Please sign in to comment.