Skip to content

Commit

Permalink
Move SelectedPVSystem state to scene #332
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianK13 committed Oct 18, 2024
1 parent 5241c4f commit 7ffa6f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/ThreeViewer/Scene.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const Scene = ({
geometries,
simulationMeshes,
setSimulationMeshes,
selectedPVSystem,
setSelectedPVSystem,
vegetationGeometries,
geoLocation,
}) => {
Expand All @@ -32,6 +30,8 @@ const Scene = ({
const [pvPoints, setPVPoints] = useState([])
// highlighted meshes for resimulation
const [selectedMesh, setSelectedMesh] = useState([])
// highlighted PVSystems for deletion or calculation
const [selectedPVSystem, setSelectedPVSystem] = useState([])

window.setPVPoints = setPVPoints
const position = [
Expand Down
4 changes: 0 additions & 4 deletions src/pages/Simulation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ function Index() {
background: [],
})

// highlighted PVSystems for deletion or calculation
const [selectedPVSystem, setSelectedPVSystem] = useState([])
// meshes that were simulated
const [simulationMeshes, setSimulationMeshes] = useState([])

Expand Down Expand Up @@ -63,8 +61,6 @@ function Index() {
geometries={geometries}
simulationMeshes={simulationMeshes}
setSimulationMeshes={setSimulationMeshes}
selectedPVSystem={selectedPVSystem}
setSelectedPVSystem={setSelectedPVSystem}
vegetationGeometries={vegetationGeometries}
geoLocation={location}
/>
Expand Down

0 comments on commit 7ffa6f1

Please sign in to comment.