feat: weather widget - add wind speed, option to disable decimals for temperature & redesign dropdown forecast (#2099)

This commit is contained in:
Yossi Hillali authored and GitHub committed 2025-01-29 23:02:13 +02:00
1 parent 5657384d2a
commit c19a4009f3
7 files changed
+106 -14

No files matched your search

@@ -77,6 +77,8 @@ const optionMapping: OptionMapping = {
forecastDayCount: (oldOptions) => oldOptions.forecastDays,
hasForecast: (oldOptions) => oldOptions.displayWeekly,
isFormatFahrenheit: (oldOptions) => oldOptions.displayInFahrenheit,
disableTemperatureDecimals: () => undefined,
showCurrentWindSpeed: () => undefined,
location: (oldOptions) => oldOptions.location,
showCity: (oldOptions) => oldOptions.displayCityName,
dateFormat: (oldOptions) => (oldOptions.dateFormat === "hide" ? undefined : oldOptions.dateFormat),