Skip to content

Commit

Permalink
TASK: Dont use react inside terminateDueToFatalInitializationError
Browse files Browse the repository at this point in the history
Fixes faulty upmerge of #3836
  • Loading branch information
mhsdesign committed Oct 9, 2024
1 parent 0ee6844 commit 130e7d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@
flex-wrap: wrap;
gap: var(--spacing-Half) var(--spacing-Full);
}

.logo > svg {
height: 40px;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {Logo} from '@neos-project/react-ui-components';

import logoSvg from '@neos-project/react-ui-components/src/Logo/resource/logo.svg';
import styles from '../Containers/ErrorBoundary/style.module.css';

export function terminateDueToFatalInitializationError(reason) {
Expand All @@ -11,8 +10,7 @@ export function terminateDueToFatalInitializationError(reason) {
document.body.innerHTML = `
<div class="${styles.container}">
<div>
<Logo />
<img style="height: 24px; width: auto;" src='${logo}' alt="Neos" />
<span class="${styles.logo}">${logoSvg}</span>
<h1 class="${styles.title}">
Sorry, but the Neos UI could not be initialized.
</h1>
Expand Down

0 comments on commit 130e7d8

Please sign in to comment.