Skip to content

Commit

Permalink
brought cancel button back in for flyby
Browse files Browse the repository at this point in the history
  • Loading branch information
mullenpaul committed Oct 16, 2023
1 parent 8f3a178 commit c6f8cd7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tgui/packages/tgui/interfaces/NavigationShuttle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,15 @@ export const LaunchCountdown = (_, context) => {
};

export const InFlightCountdown = (_, context) => {
const { data } = useBackend<NavigationProps>(context);
const { data, act } = useBackend<NavigationProps>(context);
return (
<Section title={`In flight: ${data.target_destination}`}>
<Section
title={`In flight: ${data.target_destination}`}
buttons={
data.target_destination === 'Flyby' && (
<Button onClick={() => act('cancel-flyby')}>Cancel</Button>
)
}>
<div className="InFlightCountdown">
<Stack vertical>
<Stack.Item>
Expand Down

0 comments on commit c6f8cd7

Please sign in to comment.