Update ServerRow.tsx - Fix yarn compile errors.
"Unlimited" -> 'Unlimited' Removed extra blank line
This commit is contained in:
parent
0d35ab95fd
commit
156391ef6d
1 changed files with 2 additions and 3 deletions
|
@ -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 (
|
||||
<GreyRowBox as={Link} to={`/server/${server.id}`}>
|
||||
|
|
Loading…
Reference in a new issue