Skip to content

Commit

Permalink
linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mullenpaul committed May 25, 2024
1 parent 0146fd2 commit b50de9e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tgui/packages/tgui/interfaces/DropshipFlightControl.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useEffect, useState } from 'react';

import { useBackend, useSharedState } from '../backend';
import {
Box,
Expand Down Expand Up @@ -372,13 +373,13 @@ const LaunchAnnouncementAlarm = () => {
);
};

const DropshipButton = (props: { readonly shipId: string, readonly shipName: string, readonly disable, onClick: () => void }) => {
const DropshipButton = (props: { readonly shipId: string, readonly shipName: string, readonly disable: boolean, readonly onClick: () => void }) => {
const { act, data } = useBackend<DropshipNavigationProps>();
const match = props.shipId === data.shuttle_id;

return (
<Button
disabled={match || props.disable }
disabled={match || props.disable}
onClick={() => {
act('change_shuttle', { new_shuttle: props.shipId });
act('button-push');
Expand Down Expand Up @@ -414,9 +415,9 @@ const DropshipSelector = () => {
shipName={x.name}
disable={refreshTimeout !== undefined}
onClick={() => {
const freeze = setTimeout(() => setRefreshTimeout(undefined), 2000)
const freeze = setTimeout(() => setRefreshTimeout(undefined), 2000);
setRefreshTimeout(freeze);
}}/>
}} />
))}
</Stack>
</Section>
Expand Down Expand Up @@ -454,8 +455,8 @@ const DropshipDisabledScreen = () => {
{data.alternative_shuttles.length > 0 && <DropshipSelector />}
<DisabledScreen />
</>
)
}
);
};

export const DropshipFlightControl = () => {
const { data } = useBackend<DropshipNavigationProps>();
Expand Down

0 comments on commit b50de9e

Please sign in to comment.