Merge pull request #511 from arimitx/patch-1

Fix: openweathermap day/night icon issue
pull/512/head
shamoon 2 years ago committed by GitHub
commit 074d42a8bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,7 +54,7 @@ function Widget({ options }) {
<div className="hidden sm:flex flex-col items-center"> <div className="hidden sm:flex flex-col items-center">
<Icon <Icon
condition={data.weather[0].id} condition={data.weather[0].id}
timeOfDay={data.dt > data.sys.sunrise && data.dt < data.sys.sundown ? "day" : "night"} timeOfDay={data.dt > data.sys.sunrise && data.dt < data.sys.sunset ? "day" : "night"}
/> />
</div> </div>
<div className="flex flex-col ml-3 text-left"> <div className="flex flex-col ml-3 text-left">

Loading…
Cancel
Save