From 47970891ef2ba134ff46fc08b7790c41afdac719 Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Sun, 4 Jan 2026 12:34:29 -0500 Subject: [PATCH] fix: only show relevant actions --- app/(tabs)/index.tsx | 62 ++++++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index e1a2475..29d2854 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -332,34 +332,40 @@ export default function DeviceListScreen() { - handleWake(item)} - /> - handleSleep(item)} - /> - handleReboot(item)} - /> - handleShutdown(item)} - /> + {item.status?.toLowerCase() === 'offline' && ( + handleWake(item)} + /> + )} + {item.status?.toLowerCase() === 'online' && ( + <> + handleSleep(item)} + /> + handleReboot(item)} + /> + handleShutdown(item)} + /> + + )}