feat: add suspend state and make all buttons related to state working

This commit is contained in:
2024-09-11 17:32:57 +02:00
parent 4f8e6aa928
commit f718d0b18d
7 changed files with 36 additions and 17 deletions

View File

@@ -14,7 +14,7 @@ const AppRoot = () => {
const opacity = clamp(0.5 - (0.5 * brightness) / 100, 0, 0.5);
if (state === "off") {
if (state === "off" || state === "reboot" || state === "suspend") {
return <Off />;
}