edit weatherdata

This commit is contained in:
madarsbiss
2021-09-22 19:25:53 +03:00
parent 2af4c0c5e2
commit 686701a6b9
2 changed files with 22 additions and 11 deletions

View File

@@ -6,7 +6,6 @@ import Header from "../components/Header";
import DateAndTime from "../components/DateAndTime";
import Search from "../components/Search";
import MetricsBox from "../components/MetricsBox";
import MetricsCard from "../components/MetricsCard";
import UnitSwitch from "../components/UnitSwitch";
import LoadingScreen from "../components/LoadingScreen";
import ErrorScreen from "../components/ErrorScreen";
@@ -65,7 +64,7 @@ const App = () => {
}}
/>
</Header>
<MetricsBox data={weatherData} systemUsed={systemUsed} />
<MetricsBox weatherData={weatherData} systemUsed={systemUsed} />
<UnitSwitch onClick={changeSystem} systemUsed={systemUsed} />
</ContentBox>
</div>