Enhancement: Add formatting options to weather widgets (#3093)

This commit is contained in:
Ben Phelps
2024-03-10 08:52:57 +02:00
committed by GitHub
parent 83d1ea5ec4
commit b5258c5200
6 changed files with 9 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ function Widget({ options }) {
value: options.units === "metric" ? data.current.temp_c : data.current.temp_f,
style: "unit",
unit,
...options.format,
})}
</PrimaryText>
<SecondaryText>{data.current.condition.text}</SecondaryText>