From 1b0cbd449cb934026a672ecb5eb65fb86629d6d0 Mon Sep 17 00:00:00 2001 From: Jeremiah <42397676+jlsnow301@users.noreply.github.com> Date: Fri, 24 Dec 2021 03:06:51 -0800 Subject: [PATCH] Fixes 2 drone console UI issues (#63504) --- .../tgui/interfaces/ExodroneConsole.tsx | 57 ++++++++++--------- .../tgui/interfaces/ExoscannerConsole.tsx | 45 ++++++++------- 2 files changed, 54 insertions(+), 48 deletions(-) diff --git a/tgui/packages/tgui/interfaces/ExodroneConsole.tsx b/tgui/packages/tgui/interfaces/ExodroneConsole.tsx index df5969a7a71..0297b211d7e 100644 --- a/tgui/packages/tgui/interfaces/ExodroneConsole.tsx +++ b/tgui/packages/tgui/interfaces/ExodroneConsole.tsx @@ -159,7 +159,7 @@ export const ExodroneConsole = (props, context) => { ] = useLocalState(context, 'choosingTools', false); return ( - + {!!signal_lost && } {!!choosingTools && } @@ -214,11 +214,11 @@ const DroneSelectionSection = (props: { const { all_drones } = props; return ( -
+
{all_drones.map(drone => ( - + {drone.name} @@ -234,9 +234,10 @@ const DroneSelectionSection = (props: { "Controlled by another console." ) || ( )} @@ -332,7 +333,7 @@ const EquipmentBox = (props: { {!!configurable && ( - +
@@ -461,7 +464,7 @@ const DroneStatus = (props: { } = props; return ( - + Integrity: diff --git a/tgui/packages/tgui/interfaces/ExoscannerConsole.tsx b/tgui/packages/tgui/interfaces/ExoscannerConsole.tsx index fdcc90c26ae..039af0b3326 100644 --- a/tgui/packages/tgui/interfaces/ExoscannerConsole.tsx +++ b/tgui/packages/tgui/interfaces/ExoscannerConsole.tsx @@ -1,5 +1,5 @@ import { useBackend } from '../backend'; -import { BlockQuote, Box, Button, Flex, Icon, Modal, Section, LabeledList, NoticeBox, Stack } from '../components'; +import { BlockQuote, Box, Button, Icon, Modal, Section, LabeledList, NoticeBox, Stack } from '../components'; import { Window } from '../layouts'; import { formatTime } from '../format'; @@ -22,24 +22,24 @@ type ScanData = { site_data: SiteData } -const ScanFailedModal = (props, context) => { - const { act, data } = useBackend(context); +const ScanFailedModal = (_, context) => { + const { act } = useBackend(context); return ( - - + + SCAN FAILURE! - - + + + } + fill + title="Configure Wide Scan">
@@ -257,13 +267,6 @@ export const ExoscannerConsole = (props, context) => { Cost estimate: {scan_power > 0 ? formatTime(wide_scan_eta, "short") : "∞ minutes"} - -