feat: date format on weather widget (#1443)

* feat: date format on weather widget

* fix: type check error

* fix: reviewed changes

* fix: reviewed changes
This commit is contained in:
Yossi Hillali
2024-11-08 11:33:03 +02:00
committed by GitHub
parent aa503992af
commit c51c5db3d7
6 changed files with 45 additions and 2 deletions

View File

@@ -72,6 +72,7 @@ const optionMapping: OptionMapping = {
isFormatFahrenheit: (oldOptions) => oldOptions.displayInFahrenheit,
location: (oldOptions) => oldOptions.location,
showCity: (oldOptions) => oldOptions.displayCityName,
dateFormat: (oldOptions) => (oldOptions.dateFormat === "hide" ? undefined : oldOptions.dateFormat),
},
iframe: {
embedUrl: (oldOptions) => oldOptions.embedUrl,