From 4ae4e15178ed9d1319965bf4f5b02d11c0c54309 Mon Sep 17 00:00:00 2001 From: 2hwk Date: Sat, 23 Sep 2023 14:07:03 +0800 Subject: [PATCH 1/2] fix: wheels and chocks element clash --- .../Pages/Services/A320_251N/A320Services.tsx | 50 +++++++++---------- .../Pages/Services/A380_842/A380Services.tsx | 3 ++ 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/fbw-a32nx/src/systems/instruments/src/EFB/Ground/Pages/Services/A320_251N/A320Services.tsx b/fbw-a32nx/src/systems/instruments/src/EFB/Ground/Pages/Services/A320_251N/A320Services.tsx index ed4b0462583..735dbe46dba 100644 --- a/fbw-a32nx/src/systems/instruments/src/EFB/Ground/Pages/Services/A320_251N/A320Services.tsx +++ b/fbw-a32nx/src/systems/instruments/src/EFB/Ground/Pages/Services/A320_251N/A320Services.tsx @@ -560,6 +560,30 @@ export const A320Services: React.FC = () => { > + + {/* Wheel Chocks and Security Cones are only visual information. To reuse styling */} + {/* the ServiceButtonWrapper has been re-used. */} + {!!wheelChocksEnabled && ( +
+
+ + + +
+

+ {t('Ground.Services.WheelChocks')} +

+
+ )} + + {!!conesEnabled && ( +
+ +

+ {t('Ground.Services.Cones')} +

+
+ )} @@ -624,32 +648,6 @@ export const A320Services: React.FC = () => { - {/* Wheel Chocks and Security Cones are only visual information. To reuse styling */} - {/* the ServiceButtonWrapper has been re-used. */} - - {!!wheelChocksEnabled && ( -
-
- - - -
-

- {t('Ground.Services.WheelChocks')} -

-
- )} - - {!!conesEnabled && ( -
- -

- {t('Ground.Services.Cones')} -

-
- )} -
- {/* Visual indications for tug and doors */} {!!pushBackAttached && (
{ + {/* TODO FIXME: Redesign chocks and security cones UI */} {/* Wheel Chocks and Security Cones are only visual information. To reuse styling */} {/* the ServiceButtonWrapper has been re-used. */} + {/* {!!wheelChocksEnabled && (
@@ -651,6 +653,7 @@ export const A380Services: React.FC = () => {
)}
+ */} {/* Visual indications for tug and doors */} {!!pushBackAttached && ( From 8090369129855a598d3ed405288d3938409a741c Mon Sep 17 00:00:00 2001 From: 2hwk Date: Sun, 24 Sep 2023 11:08:01 +0800 Subject: [PATCH 2/2] fix: lint --- .../EFB/Ground/Pages/Services/A380_842/A380Services.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fbw-a32nx/src/systems/instruments/src/EFB/Ground/Pages/Services/A380_842/A380Services.tsx b/fbw-a32nx/src/systems/instruments/src/EFB/Ground/Pages/Services/A380_842/A380Services.tsx index 735a5d0f3ee..52cdb43ec97 100644 --- a/fbw-a32nx/src/systems/instruments/src/EFB/Ground/Pages/Services/A380_842/A380Services.tsx +++ b/fbw-a32nx/src/systems/instruments/src/EFB/Ground/Pages/Services/A380_842/A380Services.tsx @@ -6,14 +6,14 @@ import React, { FC, useEffect, useRef } from 'react'; import { useSimVar } from '@flybywiresim/fbw-sdk'; import { ArchiveFill, - ConeStriped, + // ConeStriped, DoorClosedFill, HandbagFill, PersonPlusFill, PlugFill, - TriangleFill as Chock, + // TriangleFill as Chock, Truck, - VinylFill as Wheel, + // VinylFill as Wheel, } from 'react-bootstrap-icons'; import { ActionCreatorWithOptionalPayload } from '@reduxjs/toolkit'; import { t } from '../../../../translation'; @@ -126,11 +126,14 @@ export const A380Services: React.FC = () => { const [gpuActive] = useSimVar('A:INTERACTIVE POINT OPEN:19', 'Percent over 100', 200); // Wheel Chocks and Cones + // TODO FIXME: Reenable + /* const [isGroundEquipmentVisible] = useSimVar('L:A32NX_GND_EQP_IS_VISIBLE', 'bool', 500); const [wheelChocksEnabled] = useSimVar('L:A32NX_MODEL_WHEELCHOCKS_ENABLED', 'bool', 500); const [conesEnabled] = useSimVar('L:A32NX_MODEL_CONES_ENABLED', 'bool', 500); const wheelChocksVisible = wheelChocksEnabled && isGroundEquipmentVisible; const conesVisible = conesEnabled && isGroundEquipmentVisible; + */ // Service events const toggleMain1LeftDoor = () => SimVar.SetSimVarValue('K:TOGGLE_AIRCRAFT_EXIT', 'enum', 1);