diff --git a/plugins/lime-plugin-rx/src/sections/wired.tsx b/plugins/lime-plugin-rx/src/sections/wired.tsx index 8b488dac..a0fc8f4e 100644 --- a/plugins/lime-plugin-rx/src/sections/wired.tsx +++ b/plugins/lime-plugin-rx/src/sections/wired.tsx @@ -18,37 +18,34 @@ const Ports = ({ switches }: { switches: SwitchStatus[] }) => { acc[role].push(obj); return acc; }, {}); - return ( -
+
{Object.keys(ports).map((role) => { - if ( - role.toLowerCase() === "wan" || - role.toLowerCase() === "lan" - ) - return ( -
-

- {role.toUpperCase()} -

-

{ports[role][0].device.toLowerCase()}

-
- {ports[role].map((port) => { - const link = - port.link.toLowerCase() === "up" - ? "fill-primary-dark" - : "fill-disabled"; - return ( -
- -
- ); - })} -
+ if (role.toLowerCase() === "cpu") return null; + return ( +
+

{role.toUpperCase()}

+

{ports[role][0].device.toLowerCase()}

+
+ {ports[role].map((port) => { + const link = + port.link.toLowerCase() === "up" + ? "fill-primary-dark" + : "fill-disabled"; + return ( +
+ +
+ ); + })}
- ); +
+ ); })}
);