diff --git a/src/Pages/EquipmentTallyPage/EquipmentTallyPage.tsx b/src/Pages/EquipmentTallyPage/EquipmentTallyPage.tsx index 38ab609..41df947 100644 --- a/src/Pages/EquipmentTallyPage/EquipmentTallyPage.tsx +++ b/src/Pages/EquipmentTallyPage/EquipmentTallyPage.tsx @@ -65,6 +65,7 @@ export default function EquipmentTallyPage() { width: "100%", minHeight: "100%", minWidth: "100%", + marginTop: "6rem" }} >
- Available: + Available: {"\n"} { equipment_instances.data?.filter( (equipment_instance) => @@ -203,7 +204,7 @@ export default function EquipmentTallyPage() { }
- Pending: + Pending: {"\n"} { equipment_instances.data?.filter( (equipment_instance) => @@ -214,7 +215,18 @@ export default function EquipmentTallyPage() { }
- Broken: + Borrowed: {"\n"} + { + equipment_instances.data?.filter( + (equipment_instance) => + equipment_instance.equipment_name == + equipment.name && + equipment_instance.status == "Borrowed" + ).length + } +
++ Broken: {"\n"} { equipment_instances.data?.filter( (equipment_instance) => @@ -224,6 +236,20 @@ export default function EquipmentTallyPage() { ).length }
++ Total: {"\n"} + { + equipment_instances.data?.filter( + (equipment_instance) => + equipment_instance.equipment_name === + equipment.name + ).length + } +
+