summaryrefslogtreecommitdiff
path: root/examples/js
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-09-21 21:41:20 +0000
committerAylur <[email protected]>2024-09-21 21:41:20 +0000
commitdf8cc73f90371de2cc00f1eef63bb0f5e17d07b6 (patch)
tree79c4243e8cc4660cbb365f4fe0c0de9360a0bfe8 /examples/js
parentf3762b9cc8e20620a058b1c46c478a9270295455 (diff)
examples: update battery widget to use battery_icon_name
closes #14
Diffstat (limited to 'examples/js')
-rw-r--r--examples/js/simple-bar/widget/Bar.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/js/simple-bar/widget/Bar.tsx b/examples/js/simple-bar/widget/Bar.tsx
index 19e1133..644e835 100644
--- a/examples/js/simple-bar/widget/Bar.tsx
+++ b/examples/js/simple-bar/widget/Bar.tsx
@@ -56,7 +56,7 @@ function BatteryLevel() {
return <box className="Battery"
visible={bind(bat, "isPresent")}>
- <icon icon={bind(bat, "iconName")} />
+ <icon icon={bind(bat, "batteryIconName")} />
<label label={bind(bat, "percentage").as(p =>
`${Math.floor(p * 100)} %`
)} />