mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 21:01:54 +05:30
feat: remove icon
This commit is contained in:
@@ -5,8 +5,7 @@ export const Battery = () => {
|
|||||||
const battery = AstalBattery.get_default();
|
const battery = AstalBattery.get_default();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<box visible={bind(battery, "isPresent")}>
|
<box cssClasses={["battery"]} visible={bind(battery, "isPresent")}>
|
||||||
<image iconName={bind(battery, "batteryIconName")} />
|
|
||||||
<label
|
<label
|
||||||
label={bind(battery, "percentage").as((p) => `${Math.floor(p * 100)}%`)}
|
label={bind(battery, "percentage").as((p) => `${Math.floor(p * 100)}%`)}
|
||||||
/>
|
/>
|
||||||
|
Reference in New Issue
Block a user