Skip to content

Commit

Permalink
removed unused commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
WesloTheWeb committed Aug 21, 2022
1 parent d21e5cb commit a20ad56
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/containers/LocationInput/LocationInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@ const LocationInput = (props) => {
q: 53222,
}

// useEffect(() => {
// // Update the document title using the browser API
// // fetch(`${api.baseURL}forecast.json?key=${api.apiKey}&q=53222}&aqi=yes`)
// fetch('https://api.weatherapi.com/v1/astronomy.json?key=198d594d4a1b41de9fb222710210811&q=53222&dt=2022-08-20')
// .then(res => res.json())
// .then(result => {
// setWeather(result);
// setQuery('');
// console.log(result);
// });
// }, []);

const { setQuery, query, setWeather, setLocation } = useContext(QueryContext);

const handleQuery = (evnt) => {
Expand Down

0 comments on commit a20ad56

Please sign in to comment.