Skip to content

Commit

Permalink
fix(su95x:efb): atsu aoc settings page crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Revyn112 committed Feb 22, 2024
1 parent cc6b075 commit f63d3e6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 18 deletions.
3 changes: 1 addition & 2 deletions hdw-su95x/src/systems/instruments/src/EFB/Efb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: GPL-3.0

import React, { useEffect, useState } from 'react';

import { useSimVar, useInterval, useInteractionEvent, usePersistentNumberProperty, usePersistentProperty, NavigraphClient } from '@flybywiresim/fbw-sdk';
import { Redirect, Route, Switch, useHistory } from 'react-router-dom';
import { Battery } from 'react-bootstrap-icons';
Expand Down Expand Up @@ -359,4 +358,4 @@ const Efb = () => {
}
};

export default Efb;
export default Efb;
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ export const AboutPage = () => {
</div>
</SettingsPage>
);
};
};
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2021-2023 FlyByWire Simulations
//
// SPDX-License-Identifier: GPL-3.0

import { usePersistentNumberProperty, usePersistentProperty } from '@flybywiresim/fbw-sdk';
import React, { useState } from 'react';
import { Link, Route, Switch } from 'react-router-dom';
Expand Down Expand Up @@ -198,8 +202,8 @@ export const AircraftOptionsPinProgramsPage = () => {
<SettingItem name={t('Settings.AutomaticCallOuts.Title')}>
<Link
to={`${basePinProgRoute}/${pathify('Automatic Call Outs')}`}
className="text-theme-body hover:text-theme-highlight bg-theme-highlight hover:bg-theme-body border-theme-highlight
rounded-md border-2 px-5 py-2.5 transition duration-100"
className="py-2.5 px-5 text-theme-body hover:text-theme-highlight bg-theme-highlight
hover:bg-theme-body rounded-md border-2 border-theme-highlight transition duration-100"
>
{t('Settings.AircraftOptionsPinPrograms.Select')}
</Link>
Expand All @@ -210,4 +214,4 @@ export const AircraftOptionsPinProgramsPage = () => {
<TabRoutes basePath={basePinProgRoute} tabs={subTabs} />
</Switch>
);
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,6 @@ export const AtsuAocPage = () => {
onChange={(value) => setHoppieUserId(value)}
/>
</SettingItem>

<SettingItem name={t('Settings.AtsuAoc.SimBriefUsernamePilotId')}>
<SimpleInput
className="text-center w-30"
value={simbriefDisplay}
onBlur={(value) => handleUsernameInput(value.replace(/\s/g, ''))}
onChange={(value) => setSimbriefDisplay(value)}
/>
</SettingItem>
</SettingsPage>
);
};
};
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2021-2023 FlyByWire Simulations
//
// SPDX-License-Identifier: GPL-3.0

import React, { useRef } from 'react';

import { usePersistentNumberProperty, usePersistentProperty, useSimVar } from '@flybywiresim/fbw-sdk';
Expand Down Expand Up @@ -184,4 +188,4 @@ export const FlyPadPage = () => {

</SettingsPage>
);
};
};
2 changes: 1 addition & 1 deletion hdw-su95x/src/systems/instruments/src/EFB/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ if (process.env.VITE_BUILD) {
render(
<FailuresOrchestratorProvider><EFBLoad /></FailuresOrchestratorProvider>,
true, true,
);
);

0 comments on commit f63d3e6

Please sign in to comment.