Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
affancoder authored Nov 17, 2023
1 parent ac06f1c commit c855887
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions src/InfoBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import Card from "@mui/material/Card";
import CardContent from "@mui/material/CardContent";
import CardMedia from "@mui/material/CardMedia";
import Typography from "@mui/material/Typography";
// import ThunderstormIcon from "@mui/icons-material/Thunderstorm";
// import AcUnitIcon from "@mui/icons-material/AcUnit";
// import WbSunnyIcon from "@mui/icons-material/WbSunny";
import ThunderstormIcon from "@mui/icons-material/Thunderstorm";
import AcUnitIcon from "@mui/icons-material/AcUnit";
import WbSunnyIcon from "@mui/icons-material/WbSunny";
import "./InfoBox.css";

export default function InfoBox({ info }) {
Expand Down Expand Up @@ -35,14 +35,17 @@ export default function InfoBox({ info }) {
/>
<CardContent className="card">
<Typography gutterBottom variant="h5" component="div">
{info.city}
{/* {info.humidity > 80 ? (
<ThunderstormIcon />
) : info.temp > 15 ? (
<WbSunnyIcon />
) : (
<AcUnitIcon />
)} */}
<div>
{info.humidity > 80 ? (
<ThunderstormIcon />
) : info.temp > 15 ? (
<WbSunnyIcon />
) : (
<AcUnitIcon />
)}
&nbsp;
<div>{info.city}</div>
</div>
</Typography>
<Typography
variant="body2"
Expand Down

0 comments on commit c855887

Please sign in to comment.