Setting of payload

This commit is contained in:
2025-06-12 14:30:00 +02:00
parent 8975ea17af
commit f7304c5c7b
13 changed files with 142 additions and 84 deletions
@@ -1,4 +1,5 @@
import { FC, useState } from 'react';
import { loadAircraft } from '../../configs/shared';
import { LoadingState } from '../../types/general';
import { WASMDataPax } from '../../types/WASMData';
import Profile from '../profile/Profile';
@@ -109,9 +110,7 @@ const Pax: FC<PaxProps> = ({ WASMData, username }) => {
loadingState={loadingState}
username={username}
setLoadingState={setLoadingState}
loadAircraft={() => {
console.log('SET WEIGHT SB');
}}
loadAircraft={loadAircraft}
/>
)}
{((username && selectedTab === 1) || (!username && selectedTab === 0)) && (
@@ -119,9 +118,7 @@ const Pax: FC<PaxProps> = ({ WASMData, username }) => {
WASMData={WASMData}
loadingState={loadingState}
setLoadingState={setLoadingState}
loadAircraft={() => {
console.log('SET WEIGHT ZFW');
}}
loadAircraft={loadAircraft}
/>
)}
{((username && selectedTab === 2) || (!username && selectedTab === 1)) && (
@@ -129,9 +126,7 @@ const Pax: FC<PaxProps> = ({ WASMData, username }) => {
WASMData={WASMData}
loadingState={loadingState}
setLoadingState={setLoadingState}
loadAircraft={() => {
console.log('SET WEIGHT STATIONS');
}}
loadAircraft={loadAircraft}
/>
)}
</>