From d223d18842075800fe2162a1418cd96128eff113 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 20 Nov 2024 20:50:07 -0500 Subject: [PATCH] fix(ags): fix issues with hover on network item --- .../ags/config/widgets/bar/items/network.tsx | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/nixosModules/ags/config/widgets/bar/items/network.tsx b/nixosModules/ags/config/widgets/bar/items/network.tsx index 84777a82..a107a322 100644 --- a/nixosModules/ags/config/widgets/bar/items/network.tsx +++ b/nixosModules/ags/config/widgets/bar/items/network.tsx @@ -29,20 +29,24 @@ export default () => { return ( {/* Make sure the AP is there before binding to it */} - {bind(Wifi, 'accessPoints').as((aps) => aps.length !== 0 && ( - <> - + {bind(Wifi, 'accessPoints').as((aps) => { + if (aps.length === 0) { return; } - - {bind(Wifi, 'activeAccessPoint').as((ap) => ap && ( - - - ))} + return ( + <> + + + + {bind(Wifi, 'activeAccessPoint').as((ap) => ap && ( + + + ); + })} ); }