diff options
author | Aylur <[email protected]> | 2024-09-21 21:41:20 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-21 21:41:20 +0000 |
commit | df8cc73f90371de2cc00f1eef63bb0f5e17d07b6 (patch) | |
tree | 79c4243e8cc4660cbb365f4fe0c0de9360a0bfe8 /examples/js | |
parent | f3762b9cc8e20620a058b1c46c478a9270295455 (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.tsx | 2 |
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)} %` )} /> |