From 156391ef6d11c09e927fd87d6f23fe1cd01f8e70 Mon Sep 17 00:00:00 2001 From: DarthShmev <34663790+DarthShmev@users.noreply.github.com> Date: Sun, 12 Jul 2020 13:41:41 -0400 Subject: [PATCH] Update ServerRow.tsx - Fix yarn compile errors. "Unlimited" -> 'Unlimited' Removed extra blank line --- resources/scripts/components/dashboard/ServerRow.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/scripts/components/dashboard/ServerRow.tsx b/resources/scripts/components/dashboard/ServerRow.tsx index abb3c3924..f6f3a07b4 100644 --- a/resources/scripts/components/dashboard/ServerRow.tsx +++ b/resources/scripts/components/dashboard/ServerRow.tsx @@ -9,7 +9,6 @@ import { bytesToHuman, megabytesToHuman } from '@/helpers'; import tw from 'twin.macro'; import GreyRowBox from '@/components/elements/GreyRowBox'; - // Determines if the current value is in an alarm threshold so we can show it in red rather // than the more faded default style. const isAlarmState = (current: number, limit: number): boolean => { @@ -51,8 +50,8 @@ export default ({ server }: { server: Server }) => { alarms.disk = server.limits.disk === 0 ? false : isAlarmState(stats.diskUsageInBytes, server.limits.disk); } - const disklimit = server.limits.disk !== 0 ? megabytesToHuman(server.limits.disk) : "Unlimited"; - const memorylimit = server.limits.memory !== 0 ? megabytesToHuman(server.limits.memory) : "Unlimited"; + const disklimit = server.limits.disk !== 0 ? megabytesToHuman(server.limits.disk) : 'Unlimited'; + const memorylimit = server.limits.memory !== 0 ? megabytesToHuman(server.limits.memory) : 'Unlimited'; return (