From 77168da050f82a476d6c0aaa471f92540d1e8baa Mon Sep 17 00:00:00 2001 From: AlaunusLux <89751433+AlaunusLux@users.noreply.github.com> Date: Sun, 14 Jan 2024 06:24:27 -0600 Subject: [PATCH] Provide exit button on notFound and missingExport page --- tgui/packages/tgui/routes.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tgui/packages/tgui/routes.tsx b/tgui/packages/tgui/routes.tsx index b841c84b887..50b9eccce5e 100644 --- a/tgui/packages/tgui/routes.tsx +++ b/tgui/packages/tgui/routes.tsx @@ -7,7 +7,7 @@ import { Icon, Section, Stack } from './components'; import { Store } from 'common/redux'; -import { Window } from './layouts'; +import { NtosWindow, Window } from './layouts'; import { selectBackend } from './backend'; import { selectDebug } from './debug/selectors'; @@ -16,8 +16,8 @@ const requireInterface = require.context('./interfaces'); const routingError = (type: 'notFound' | 'missingExport', name: string) => () => { return ( - - + + {type === 'notFound' && (
Interface {name} was not found. @@ -28,17 +28,17 @@ const routingError = Interface {name} is missing an export.
)} -
-
+ + ); }; // Displays an empty Window with scrollable content const SuspendedWindow = () => { return ( - - - + + + ); };