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

This commit is contained in:
Pihkaal
2024-09-11 17:32:57 +02:00
parent 14ef2317fa
commit 79902cb7f1
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 />;
}