From 188518e06c77dec461f07f0e16277bf88c9bcd7d Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Wed, 19 Nov 2025 11:17:07 -0300 Subject: [PATCH] Refresh device cards layout --- .../admin/devices/admin-devices-overview.tsx | 83 ++++++++++--------- 1 file changed, 44 insertions(+), 39 deletions(-) diff --git a/src/components/admin/devices/admin-devices-overview.tsx b/src/components/admin/devices/admin-devices-overview.tsx index 4f87279..4a72ead 100644 --- a/src/components/admin/devices/admin-devices-overview.tsx +++ b/src/components/admin/devices/admin-devices-overview.tsx @@ -5743,42 +5743,53 @@ function DeviceCard({ device, companyName }: { device: DevicesQueryItem; company ) : null} - - {deviceLabel} + + + {deviceLabel} -
- {deviceTypeLabel} - {device.devicePlatform ? ( - <> - - {device.devicePlatform} - - ) : null} - {device.authEmail ? ( - <> - - {device.authEmail} - +
+
+ {deviceTypeLabel} + {device.devicePlatform ? ( + <> + + {device.devicePlatform} + + ) : null} + {device.authEmail ? ( + <> + + + {device.authEmail} + + + ) : null} +
+ {collaborator?.email ? ( +
+
+ Usuário vinculado + + {collaborator.name ?? "Usuário"} + + + {collaborator.email} + +
+ +
) : null}
- {collaborator?.email ? ( -
- - Usuário vinculado: {collaborator.name ? `${collaborator.name} · ` : ""}{collaborator.email} - - -
- ) : null} {!isActive ? ( Desativado @@ -5800,12 +5811,6 @@ function DeviceCard({ device, companyName }: { device: DevicesQueryItem; company ) : null}
- {collaborator?.email ? ( -

- {persona}: {collaborator.name ? `${collaborator.name} · ` : ""} - {collaborator.email} -

- ) : null}
{deviceTypeLabel}