Skip to content

Commit

Permalink
move 404 animation
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiahag committed Jan 17, 2024
1 parent d64490a commit 11efdae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Weather.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ import mist from '../assets/images/misty.json';
import sun from '../assets/images/sunny.json';
import error from '../assets/images/error.json';

const REACT_APP_WEATHER_API_KEY = process.env.REACT_APP_WEATHER_API_KEY;

const api = {
key: `${process.env.REACT_APP_WEATHER_API_KEY}`,
key: REACT_APP_WEATHER_API_KEY,
base: 'https://api.openweathermap.org/data/2.5/',
};

Expand Down Expand Up @@ -186,7 +188,7 @@ function Weather() {
</Box>
</Box>
{weather.error && (
<Box style={lottieStyles}>
<Box style={{marginTop: '5%'}}>
<Lottie animationData={error} loop />
</Box>
)}
Expand Down

0 comments on commit 11efdae

Please sign in to comment.