Provide exit button on notFound and missingExport page

This commit is contained in:
AlaunusLux
2024-01-14 06:24:27 -06:00
parent a4413dc346
commit 77168da050
+8 -8
View File
@@ -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 (
<Window>
<Window.Content scrollable>
<NtosWindow>
<NtosWindow.Content scrollable>
{type === 'notFound' && (
<div>
Interface <b>{name}</b> was not found.
@@ -28,17 +28,17 @@ const routingError =
Interface <b>{name}</b> is missing an export.
</div>
)}
</Window.Content>
</Window>
</NtosWindow.Content>
</NtosWindow>
);
};
// Displays an empty Window with scrollable content
const SuspendedWindow = () => {
return (
<Window>
<Window.Content scrollable />
</Window>
<NtosWindow>
<NtosWindow.Content scrollable />
</NtosWindow>
);
};