Commit ab9111d4 authored by EnesKarakas's avatar EnesKarakas
Browse files

adw

parent f31da304
...@@ -245,9 +245,6 @@ const Currentdata = (props) => { ...@@ -245,9 +245,6 @@ const Currentdata = (props) => {
<br /> <br />
<input className="input" type="text" id="apiUrloutput" readOnly /> <input className="input" type="text" id="apiUrloutput" readOnly />
</div> </div>
<button className="APIButton" onClick={searchAPI}>
City api
</button>
<br /> <br />
<br /> <br />
</div> </div>
...@@ -347,8 +344,8 @@ const Currentdata = (props) => { ...@@ -347,8 +344,8 @@ const Currentdata = (props) => {
filterArray.push("last_updated"); filterArray.push("last_updated");
} }
if (temp) { if (temp) {
if(units == world){ if (units == world) {
filterArray.push("temp_f"); filterArray.push("temp_c");
} }
filterArray.push("temp_f"); filterArray.push("temp_f");
} }
...@@ -366,7 +363,7 @@ const Currentdata = (props) => { ...@@ -366,7 +363,7 @@ const Currentdata = (props) => {
filterArray.push("condition_code"); filterArray.push("condition_code");
} }
if (wind) { if (wind) {
if(units == world){ if (units == world) {
filterArray.push("wind_mph"); filterArray.push("wind_mph");
} }
filterArray.push("wind_kph"); filterArray.push("wind_kph");
...@@ -378,12 +375,13 @@ const Currentdata = (props) => { ...@@ -378,12 +375,13 @@ const Currentdata = (props) => {
filterArray.push("wind_dir"); filterArray.push("wind_dir");
} }
if (pressure) { if (pressure) {
if(units == world){ if (units == world) {
filterArray.push("temp_mb"); filterArray.push("temp_mb");
} }
filterArray.push("pressure_in"); filterArray.push("pressure_in");
} }
if (precip) {if(units == world){ if (precip) {
if (units == world) {
filterArray.push("temp_mm"); filterArray.push("temp_mm");
} }
filterArray.push("precip_in"); filterArray.push("precip_in");
...@@ -395,31 +393,31 @@ const Currentdata = (props) => { ...@@ -395,31 +393,31 @@ const Currentdata = (props) => {
filterArray.push("cloud"); filterArray.push("cloud");
} }
if (feelslike) { if (feelslike) {
if(units == world){ if (units == world) {
filterArray.push("feelslike_c"); filterArray.push("feelslike_c");
} }
filterArray.push("feelslike_f"); filterArray.push("feelslike_f");
} }
if (windchill) { if (windchill) {
if(units == world){ if (units == world) {
filterArray.push("windchill_c"); filterArray.push("windchill_c");
} }
filterArray.push("windchill_f"); filterArray.push("windchill_f");
} }
if (heatindex) { if (heatindex) {
if(units == world){ if (units == world) {
filterArray.push("heatindex_c"); filterArray.push("heatindex_c");
} }
filterArray.push("heatindex_f"); filterArray.push("heatindex_f");
} }
if (dewpoint) { if (dewpoint) {
if(units == world){ if (units == world) {
filterArray.push("dewpoint_c"); filterArray.push("dewpoint_c");
} }
filterArray.push("dewpoint_f"); filterArray.push("dewpoint_f");
} }
if (vis) { if (vis) {
if(units == world){ if (units == world) {
filterArray.push("vis_miles"); filterArray.push("vis_miles");
} }
filterArray.push("vis_miles"); filterArray.push("vis_miles");
...@@ -428,7 +426,7 @@ const Currentdata = (props) => { ...@@ -428,7 +426,7 @@ const Currentdata = (props) => {
filterArray.push("uv"); filterArray.push("uv");
} }
if (gust) { if (gust) {
if(units == world){ if (units == world) {
filterArray.push("gust_kph"); filterArray.push("gust_kph");
} }
filterArray.push("gust_mph"); filterArray.push("gust_mph");
......
...@@ -184,9 +184,6 @@ const HistoricalWeatherData = (props) => { ...@@ -184,9 +184,6 @@ const HistoricalWeatherData = (props) => {
<br /> <br />
<input className="input" type="text" id="apiUrloutput" readOnly /> <input className="input" type="text" id="apiUrloutput" readOnly />
</div> </div>
<button className="APIButton" onClick={searchAPI}>
City api
</button>
<br /> <br />
<br /> <br />
</div> </div>
......
...@@ -314,9 +314,6 @@ const WeatherForecastData = (props) => { ...@@ -314,9 +314,6 @@ const WeatherForecastData = (props) => {
readOnly readOnly
/> />
</div> </div>
<button className="APIButton" onClick={searchAPI}>
City api
</button>
<br /> <br />
<br /> <br />
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment