Pax Station Entry

This commit is contained in:
2025-06-11 17:30:36 +02:00
parent 890622453e
commit 896a459bba
8 changed files with 181 additions and 257 deletions
@@ -1,6 +1,7 @@
import { FC, useState } from 'react';
import { WASMDataPax } from '../../types/WASMData';
import Profile from '../profile/Profile';
import StationEntryPax from '../stationEntry/StationEntryPax';
import Tabbar from '../tabbar/Tabbar';
import ZFWEntryPax from '../zfwEntry/ZFWEntryPax';
@@ -128,30 +129,20 @@ const Pax: FC<PaxProps> = ({ WASMData, username }) => {
loadingState={loadingState}
setLoadingState={setLoadingState}
loadAircraft={() => {
console.log('SET WEIGHT');
console.log('SET WEIGHT ZFW');
}}
/>
)}
{/*
{((username && selectedTab === 2) || (!username && selectedTab === 1)) && (
<StationEntryPax
unit={unit}
isER={isER}
initialPayload={payload}
fuelLive={fuelLive}
payloadLive={payloadLive}
WASMData={WASMData}
loadingState={loadingState}
setLoadingState={setLoadingState}
updateView={(_payload) => {
setPayload(_payload);
}}
loadAircraft={() => {
PaxConfig.setBaseWeight(unit, isER);
PaxConfig.setWeights(payload, unit);
console.log('SET WEIGHT STATIONS');
}}
/>
)}
*/}
</>
);
};