From df8cc73f90371de2cc00f1eef63bb0f5e17d07b6 Mon Sep 17 00:00:00 2001
From: Aylur <k.demeter@protonmail.com>
Date: Sat, 21 Sep 2024 21:41:20 +0000
Subject: examples: update battery widget to use battery_icon_name

closes #14
---
 examples/js/simple-bar/widget/Bar.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'examples/js/simple-bar/widget/Bar.tsx')

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)} %`
         )} />
-- 
cgit v1.2.3

