From 0e09683d61a965fef4058ffc15ae970d1bf0f41a Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 27 May 2021 18:18:05 -0400 Subject: [PATCH] fix: use prop names from the specs --- striker-ui/components/Memory.tsx | 24 +++++++++++------------- striker-ui/types/AnvilMemory.d.ts | 2 +- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/striker-ui/components/Memory.tsx b/striker-ui/components/Memory.tsx index 5febd821..5360a4e6 100644 --- a/striker-ui/components/Memory.tsx +++ b/striker-ui/components/Memory.tsx @@ -13,7 +13,7 @@ const Memory = (): JSX.Element => { `${process.env.NEXT_PUBLIC_API_URL}/get_memory?anvil_uuid=${uuid}`, ); - const memoryData = isLoading || !data ? { total: 0, free: 0 } : data; + const memoryData = isLoading || !data ? { total: 0, allocated: 0 } : data; return ( @@ -21,28 +21,26 @@ const Memory = (): JSX.Element => { diff --git a/striker-ui/types/AnvilMemory.d.ts b/striker-ui/types/AnvilMemory.d.ts index 26a5d70f..2fe1c2cb 100644 --- a/striker-ui/types/AnvilMemory.d.ts +++ b/striker-ui/types/AnvilMemory.d.ts @@ -1,4 +1,4 @@ declare type AnvilMemory = { total: number; - free: number; + allocated: number; };