diff --git a/resources/scripts/components/dashboard/ServerRow.tsx b/resources/scripts/components/dashboard/ServerRow.tsx index 47534cf77..7187cb32f 100644 --- a/resources/scripts/components/dashboard/ServerRow.tsx +++ b/resources/scripts/components/dashboard/ServerRow.tsx @@ -4,7 +4,7 @@ import { faEthernet, faHdd, faMemory, faMicrochip, faServer } from '@fortawesome import { Link } from 'react-router-dom'; import { Server } from '@/api/server/getServer'; import getServerResourceUsage, { ServerPowerState, ServerStats } from '@/api/server/getServerResourceUsage'; -import { bytesToHuman, megabytesToHuman, formatIp } from '@/helpers'; +import { bytesToHuman, formatIp, megabytesToHuman } from '@/helpers'; import tw from 'twin.macro'; import GreyRowBox from '@/components/elements/GreyRowBox'; import Spinner from '@/components/elements/Spinner'; @@ -87,21 +87,23 @@ export default ({ server, className }: { server: Server; className?: string }) =

{server.name}

{!!server.description && -

{server.description}

+

{server.description}

}
-
- -

- { - server.allocations.filter(alloc => alloc.isDefault).map(allocation => ( - - {allocation.alias || formatIp(allocation.ip)}:{allocation.port} - - )) - } -

+
+
+ +

+ { + server.allocations.filter(alloc => alloc.isDefault).map(allocation => ( + + {allocation.alias || formatIp(allocation.ip)}:{allocation.port} + + )) + } +

+
{(!stats || isSuspended) ?