From a20ad56192eac32ecb255597189f56ca448e319e Mon Sep 17 00:00:00 2001 From: Wesley Date: Sat, 20 Aug 2022 23:24:33 -0500 Subject: [PATCH] removed unused commented code --- src/containers/LocationInput/LocationInput.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/containers/LocationInput/LocationInput.js b/src/containers/LocationInput/LocationInput.js index 9ef9515..6d3ebb3 100644 --- a/src/containers/LocationInput/LocationInput.js +++ b/src/containers/LocationInput/LocationInput.js @@ -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) => {