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)} + /> + + )}